From 2bc0c7ca023e5ea90312139066268fed16ff17c5 Mon Sep 17 00:00:00 2001 From: Brit Gardner Date: Fri, 22 Jan 2016 10:59:44 -0600 Subject: Use the correct reference to the redis connection Fixes #23193 This was throwing `There was an exception - NameError(undefined local variable or method `hi_redis_conn' for #)` on unsubscribe. --- actioncable/lib/action_cable/subscription_adapter/redis.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actioncable') diff --git a/actioncable/lib/action_cable/subscription_adapter/redis.rb b/actioncable/lib/action_cable/subscription_adapter/redis.rb index d149f28b1f..e42ab2a03f 100644 --- a/actioncable/lib/action_cable/subscription_adapter/redis.rb +++ b/actioncable/lib/action_cable/subscription_adapter/redis.rb @@ -17,7 +17,7 @@ module ActionCable end def unsubscribe(channel, message_callback) - hi_redis_conn.pubsub.unsubscribe_proc(channel, message_callback) + redis_connection_for_subscriptions.pubsub.unsubscribe_proc(channel, message_callback) end private -- cgit v1.2.3