Skip to content
代码片段 群组 项目
  • nicolasdular's avatar
    a41ff9d0
    Fix broadcast message rendering · a41ff9d0
    nicolasdular 创作于
    With the broadcast placeholders we're using
    `Banzai#render_and_post_process` instead of `Banzai#render_field` like
    before. `render_and_post_process` is using `render` instead of
    `render_field` internally, which means that we need to pass in the text
    of a broadcast message instead of which field should be rendered.
    
    However another difference of this method is that it is not
    automatically using the `BroadcastMessagePipeline` for rendering. We
    could overcome this by passing `pipeline: :broadcast_message` in the
    context but I've instead added another method
    `render_field_and_post_process` which calls `render_field` internally
    instead to align with the behaviour that we used before.
    a41ff9d0
    历史
    Fix broadcast message rendering
    nicolasdular 创作于
    With the broadcast placeholders we're using
    `Banzai#render_and_post_process` instead of `Banzai#render_field` like
    before. `render_and_post_process` is using `render` instead of
    `render_field` internally, which means that we need to pass in the text
    of a broadcast message instead of which field should be rendered.
    
    However another difference of this method is that it is not
    automatically using the `BroadcastMessagePipeline` for rendering. We
    could overcome this by passing `pipeline: :broadcast_message` in the
    context but I've instead added another method
    `render_field_and_post_process` which calls `render_field` internally
    instead to align with the behaviour that we used before.
代码所有者
将用户和群组指定为特定文件更改的核准人。 了解更多。