From 3c4488cd9d0781fe563cfd346f0e6cf2d342ced5 Mon Sep 17 00:00:00 2001 From: Pratik Naik Date: Mon, 19 Jan 2015 14:28:45 +0530 Subject: No need for matching params --- lib/action_cable/server.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lib/action_cable') diff --git a/lib/action_cable/server.rb b/lib/action_cable/server.rb index 02cf592ad6..cdf8ea0f66 100644 --- a/lib/action_cable/server.rb +++ b/lib/action_cable/server.rb @@ -48,9 +48,7 @@ module ActionCable id_key = data['identifier'] id_options = ActiveSupport::JSON.decode(id_key).with_indifferent_access - subscription_klass = registered_channels.detect do |channel_klass| - channel_klass.find_name == id_options[:channel] && channel_klass.matches?(id_options) - end + subscription_klass = registered_channels.detect { |channel_klass| channel_klass.find_name == id_options[:channel] } if subscription_klass @subscriptions[id_key] = subscription_klass.new(self, id_key, id_options) -- cgit v1.2.3