From a66c56210c844ba51452fbf7a0aa01175ea3eb6f Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Mon, 22 Jun 2015 21:34:06 +0200 Subject: Fix RemoteConnection due to refactoring breakage --- lib/action_cable/remote_connection.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lib/action_cable/remote_connection.rb') 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 -- cgit v1.2.3