instance method
broadcast_action_to
Ruby on Rails 2.0.23
Since v1.3.3 Last seen in v2.0.23Signature
broadcast_action_to(*streamables, action:, target: nil, targets: nil, attributes: {}, **rendering)
No documentation comment.
Parameters
-
streamablesrest -
actionkeyreq -
targetkey = nil -
targetskey = nil -
attributeskey = {} -
renderingkeyrest
Source
# File app/channels/turbo/streams/broadcasts.rb, line 40
def broadcast_action_to(*streamables, action:, target: nil, targets: nil, attributes: {}, **rendering)
broadcast_stream_to(*streamables, content: turbo_stream_action_tag(
action, target: target, targets: targets, template: render_broadcast_action(rendering), **attributes)
)
end
Defined in app/channels/turbo/streams/broadcasts.rb line 40
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Turbo::Streams::Broadcasts