lib/reactor/models/concerns/subscribable.rb in reactor-0.3.0 vs lib/reactor/models/concerns/subscribable.rb in reactor-0.3.1
- old
+ new
@@ -1,9 +1,9 @@
module Reactor::Subscribable
extend ActiveSupport::Concern
module ClassMethods
- def subscribes_to(event, &callback)
+ def on_event(event, &callback)
(Reactor::STATIC_SUBSCRIBERS[event.to_s] ||= []).push(callback)
end
end
end
\ No newline at end of file