Module: ActionCable::Channel::Broadcasting::ClassMethods
Relationships & Source Files | |
Defined in: | actioncable/lib/action_cable/channel/broadcasting.rb |
Instance Method Summary
-
#broadcast_to(model, message)
Broadcast a hash to a unique broadcasting for this
model
in this channel.
Instance Method Details
#broadcast_to(model, message)
Broadcast a hash to a unique broadcasting for this model
in this channel.
# File 'actioncable/lib/action_cable/channel/broadcasting.rb', line 14
def broadcast_to(model, ) ActionCable.server.broadcast(broadcasting_for([ channel_name, model ]), ) end