aboutsummaryrefslogtreecommitdiffstats
path: root/lib/action_cable/channel/callbacks.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/action_cable/channel/callbacks.rb')
-rw-r--r--lib/action_cable/channel/callbacks.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/action_cable/channel/callbacks.rb b/lib/action_cable/channel/callbacks.rb
index cf0246a386..22c6f2d563 100644
--- a/lib/action_cable/channel/callbacks.rb
+++ b/lib/action_cable/channel/callbacks.rb
@@ -21,8 +21,8 @@ module ActionCable
self.on_unsubscribe_callbacks += methods
end
- def periodic_timer(method, every:)
- self.periodic_timers += [ [ method, every: every ] ]
+ def periodically(callback, every:)
+ self.periodic_timers += [ [ callback, every: every ] ]
end
end