aboutsummaryrefslogtreecommitdiffstats
path: root/lib/action_cable/server.rb
diff options
context:
space:
mode:
authorPratik Naik <pratiknaik@gmail.com>2015-01-17 11:39:28 +0530
committerPratik Naik <pratiknaik@gmail.com>2015-01-17 11:39:28 +0530
commit955bf93549f336d95862b12079f8b88f99145f8b (patch)
tree94d8a09f71b742397021acda05ae69bcd4c31e7e /lib/action_cable/server.rb
parent61ea867f295b7872b8cb000e257236f70f1518cd (diff)
downloadrails-955bf93549f336d95862b12079f8b88f99145f8b.tar.gz
rails-955bf93549f336d95862b12079f8b88f99145f8b.tar.bz2
rails-955bf93549f336d95862b12079f8b88f99145f8b.zip
Use underscored class name as the default channel name
Diffstat (limited to 'lib/action_cable/server.rb')
-rw-r--r--lib/action_cable/server.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/action_cable/server.rb b/lib/action_cable/server.rb
index 08a6e9030b..eeeb50f08c 100644
--- a/lib/action_cable/server.rb
+++ b/lib/action_cable/server.rb
@@ -49,7 +49,7 @@ module ActionCable
id_options = ActiveSupport::JSON.decode(id_key).with_indifferent_access
subscription_klass = registered_channels.detect do |channel_klass|
- channel_klass.channel_name == id_options[:channel] && channel_klass.matches?(id_options)
+ channel_klass.find_name == id_options[:channel] && channel_klass.matches?(id_options)
end
if subscription_klass