From 51bd331004dd9fe4ae251345bf3a5e8ebf0eff81 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Fri, 19 Jun 2015 22:43:39 +0200 Subject: Better spacing --- lib/action_cable/channel/base.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/action_cable/channel/base.rb') diff --git a/lib/action_cable/channel/base.rb b/lib/action_cable/channel/base.rb index 3de932858a..ec14e13dfa 100644 --- a/lib/action_cable/channel/base.rb +++ b/lib/action_cable/channel/base.rb @@ -93,6 +93,7 @@ module ActionCable self.class.on_unsubscribe_callbacks.each { |callback| send(callback) } end + def start_periodic_timers self.class.periodic_timers.each do |callback, options| @_active_periodic_timers << EventMachine::PeriodicTimer.new(options[:every]) do @@ -105,6 +106,7 @@ module ActionCable @_active_periodic_timers.each {|t| t.cancel } end + def worker_pool connection.worker_pool end -- cgit v1.2.3