aboutsummaryrefslogtreecommitdiffstats
path: root/lib/action_cable/remote_connection.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2015-06-22 21:34:06 +0200
committerDavid Heinemeier Hansson <david@loudthinking.com>2015-06-22 21:34:06 +0200
commita66c56210c844ba51452fbf7a0aa01175ea3eb6f (patch)
tree457d015931081b1d807388fd80b7068da055f6eb /lib/action_cable/remote_connection.rb
parentb9fcaa7cbcad9a4ae2e56e1907764b6eae4a94c6 (diff)
downloadrails-a66c56210c844ba51452fbf7a0aa01175ea3eb6f.tar.gz
rails-a66c56210c844ba51452fbf7a0aa01175ea3eb6f.tar.bz2
rails-a66c56210c844ba51452fbf7a0aa01175ea3eb6f.zip
Fix RemoteConnection due to refactoring breakage
Diffstat (limited to 'lib/action_cable/remote_connection.rb')
-rw-r--r--lib/action_cable/remote_connection.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/action_cable/remote_connection.rb b/lib/action_cable/remote_connection.rb
index 912fb6eb57..b6fdf226e3 100644
--- a/lib/action_cable/remote_connection.rb
+++ b/lib/action_cable/remote_connection.rb
@@ -2,7 +2,7 @@ module ActionCable
class RemoteConnection
class InvalidIdentifiersError < StandardError; end
- include Connection::Identifier
+ include Connection::Identification, Connection::InternalChannel
def initialize(server, ids)
@server = server
@@ -10,8 +10,7 @@ module ActionCable
end
def disconnect
- message = { type: 'disconnect' }.to_json
- redis.publish(internal_redis_channel, message)
+ redis.publish internal_redis_channel, { type: 'disconnect' }.to_json
end
def identifiers