actioncable/lib/action_cable/server/base.rb
# Requires and returns a hash of all of the channel class constants, which are keyed by name.
Requires and returns a hash of all of the channel class constants, which are keyed by name.
Requires and returns a hash of all of the channel class constants which are keyed by name .
def channel_classes
        @channel_classes || @mutex.synchronize do
          @channel_classes ||= begin
            config.channel_paths.each { |channel_path| require channel_path }
            config.channel_class_names.each_with_object({}) { |name, hash| hash[name] = name.constantize }
          end
        end
      end
def channel_classes @channel_classes || @mutex . synchronize do @channel_classes ||= begin config . channel_paths . each { | channel_path | require channel_path } config . channel_class_names . each_with_object ( { } ) { | name , hash | hash [ name ] = name . constantize } end end end
Requires and returns a hash of all of the channel class constants, which are keyed by name.
Requires and returns a hash of all of the channel class constants which are keyed by name .