From e81bb80cb4214ff795f7a2bb03f699e2a7f7d45a Mon Sep 17 00:00:00 2001 From: Matthew Draper Date: Sun, 24 Jan 2016 15:51:21 +1030 Subject: Normalize on no arguments for the success callback --- actioncable/lib/action_cable/subscription_adapter/redis.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actioncable/lib/action_cable/subscription_adapter') diff --git a/actioncable/lib/action_cable/subscription_adapter/redis.rb b/actioncable/lib/action_cable/subscription_adapter/redis.rb index e42ab2a03f..90abf21367 100644 --- a/actioncable/lib/action_cable/subscription_adapter/redis.rb +++ b/actioncable/lib/action_cable/subscription_adapter/redis.rb @@ -12,7 +12,7 @@ module ActionCable def subscribe(channel, message_callback, success_callback = nil) redis_connection_for_subscriptions.pubsub.subscribe(channel, &message_callback).tap do |result| - result.callback(&success_callback) if success_callback + result.callback { |reply| success_callback.call } if success_callback end end -- cgit v1.2.3