Flowdock
method

broadcasting_for

Importance_1
Ruby on Rails latest stable (v6.1.7.7) - 0 notes - Class: ClassMethods
broadcasting_for(model) public

Returns a unique broadcasting identifier for this model in this channel:

CommentsChannel.broadcasting_for("all") # => "comments:all"

You can pass any object as a target (e.g. Active Record model), and it would be serialized into a string under the hood.

Show source
Register or log in to add new notes.