From 60173338ee0fb1667e226927e0034d50e3dd9d5a Mon Sep 17 00:00:00 2001 From: Pratik Naik Date: Sat, 7 Feb 2015 09:22:00 +0530 Subject: Fix periodic timers --- lib/action_cable/channel/base.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/action_cable/channel/base.rb b/lib/action_cable/channel/base.rb index 832c8cc314..9cfeb4b73a 100644 --- a/lib/action_cable/channel/base.rb +++ b/lib/action_cable/channel/base.rb @@ -10,7 +10,7 @@ module ActionCable on_unsubscribe :disconnect - attr_reader :params + attr_reader :params, :connection class_attribute :channel_name @@ -61,7 +61,7 @@ module ActionCable end def broadcast(data) - @connection.broadcast({ identifier: @channel_identifier, message: data }.to_json) + connection.broadcast({ identifier: @channel_identifier, message: data }.to_json) end def start_periodic_timers -- cgit v1.2.3