instance method
broadcast_action
Ruby on Rails 2.0.23
Since v1.3.3 Last seen in v2.0.23Signature
broadcast_action(action, target: broadcast_target_default, attributes: {}, **rendering)
Same as #broadcast_action_to, but the designated stream is automatically set to the current model.
Parameters
-
actionreq -
targetkey = broadcast_target_default -
attributeskey = {} -
renderingkeyrest
Source
# File app/models/concerns/turbo/broadcastable.rb, line 400
def broadcast_action(action, target: broadcast_target_default, attributes: {}, **rendering)
broadcast_action_to self, action: action, target: target, attributes: attributes, **rendering
end
Defined in app/models/concerns/turbo/broadcastable.rb line 400
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Turbo::Broadcastable