diff options
Diffstat (limited to 'lib/action_cable/connection/subscriptions.rb')
-rw-r--r-- | lib/action_cable/connection/subscriptions.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/action_cable/connection/subscriptions.rb b/lib/action_cable/connection/subscriptions.rb index 24ab1bdfbf..800474eee5 100644 --- a/lib/action_cable/connection/subscriptions.rb +++ b/lib/action_cable/connection/subscriptions.rb @@ -22,8 +22,8 @@ module ActionCable id_key = data['identifier'] id_options = ActiveSupport::JSON.decode(id_key).with_indifferent_access - subscription_klass = connection.server.registered_channels.detect do |channel_klass| - channel_klass == id_options[:channel].safe_constantize + subscription_klass = connection.server.channel_classes.detect do |channel_class| + channel_class == id_options[:channel].safe_constantize end if subscription_klass |