From 568599dd206301b8fde9b75f4913de4caed65967 Mon Sep 17 00:00:00 2001 From: Pratik Naik Date: Mon, 19 Jan 2015 15:07:28 +0530 Subject: Fix unsubscribe callbacks --- lib/action_cable/channel/base.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/action_cable/channel/base.rb b/lib/action_cable/channel/base.rb index 9f72467f17..7052945eb1 100644 --- a/lib/action_cable/channel/base.rb +++ b/lib/action_cable/channel/base.rb @@ -43,7 +43,7 @@ module ActionCable end def unsubscribe - self.class.on_unsubscribe.each do |callback| + self.class.on_unsubscribe_callbacks.each do |callback| EM.next_tick { send(callback) } end end -- cgit v1.2.3