aboutsummaryrefslogtreecommitdiffstats
path: root/lib/action_cable/channel/periodic_timers.rb
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2015-10-23 20:15:40 -0200
committerRafael Mendonça França <rafaelmfranca@gmail.com>2015-10-23 20:15:40 -0200
commit9f1938d9c10b4892d939374b49362e726023b5d7 (patch)
tree104afc2b0a7f6f14a6fba5cede64b4fe65b557d1 /lib/action_cable/channel/periodic_timers.rb
parent1db8c56cefe2e74d01ad5f3d4d4da1329013e2d6 (diff)
parentcf426a7ee680e8cd30a4b5afccf7e140537836f4 (diff)
downloadrails-9f1938d9c10b4892d939374b49362e726023b5d7.tar.gz
rails-9f1938d9c10b4892d939374b49362e726023b5d7.tar.bz2
rails-9f1938d9c10b4892d939374b49362e726023b5d7.zip
Merge pull request #69 from mieko/callbacks
Use ActiveSupport::Callbacks for Channel subscription callbacks.
Diffstat (limited to 'lib/action_cable/channel/periodic_timers.rb')
-rw-r--r--lib/action_cable/channel/periodic_timers.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/action_cable/channel/periodic_timers.rb b/lib/action_cable/channel/periodic_timers.rb
index 9bdcc87aa5..25fe8e5e54 100644
--- a/lib/action_cable/channel/periodic_timers.rb
+++ b/lib/action_cable/channel/periodic_timers.rb
@@ -7,8 +7,8 @@ module ActionCable
class_attribute :periodic_timers, instance_reader: false
self.periodic_timers = []
- on_subscribe :start_periodic_timers
- on_unsubscribe :stop_periodic_timers
+ after_subscribe :start_periodic_timers
+ after_unsubscribe :stop_periodic_timers
end
module ClassMethods
@@ -38,4 +38,4 @@ module ActionCable
end
end
end
-end \ No newline at end of file
+end