method

broadcasting_for

Importance_0
v5.2.3 - Show latest stable - 0 notes - Class: ClassMethods
broadcasting_for(model) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 18
        def broadcasting_for(model) #:nodoc:
          case
          when model.is_a?(Array)
            model.map { |m| broadcasting_for(m) }.join(":")
          when model.respond_to?(:to_gid_param)
            model.to_gid_param
          else
            model.to_param
          end
        end
Register or log in to add new notes.