diff options
author | Javan Makhmali <javan@javan.us> | 2015-06-26 14:35:39 -0400 |
---|---|---|
committer | Javan Makhmali <javan@javan.us> | 2015-06-26 14:35:39 -0400 |
commit | f4bd1aee96d50b4d0bd915774e0c8d23f4b12748 (patch) | |
tree | 6ff0fb08be146cc6255252610ca97eb083cf0914 /lib/action_cable/connection/subscriptions.rb | |
parent | e3cb3696cfaa766b62d644411fe71e4e64aab85a (diff) | |
parent | 5541b8fcaf9ec40e6f16c50cb45030838a3e3450 (diff) | |
download | rails-f4bd1aee96d50b4d0bd915774e0c8d23f4b12748.tar.gz rails-f4bd1aee96d50b4d0bd915774e0c8d23f4b12748.tar.bz2 rails-f4bd1aee96d50b4d0bd915774e0c8d23f4b12748.zip |
Merge pull request #2 from basecamp/create-channel
Channel factory
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 9e7a8a5f73..ae191c7795 100644 --- a/lib/action_cable/connection/subscriptions.rb +++ b/lib/action_cable/connection/subscriptions.rb @@ -23,7 +23,7 @@ module ActionCable id_options = ActiveSupport::JSON.decode(id_key).with_indifferent_access subscription_klass = connection.server.registered_channels.detect do |channel_klass| - channel_klass.find_name == id_options[:channel] + channel_klass == id_options[:channel].safe_constantize end if subscription_klass @@ -66,4 +66,4 @@ module ActionCable end end end -end
\ No newline at end of file +end |