lib/reactor/models/concerns/eventable.rb in reactor-0.1.3 vs lib/reactor/models/concerns/eventable.rb in reactor-0.1.4
- old
+ new
@@ -24,10 +24,10 @@
def schedule_events
self.class.events.each do |name, data|
event = data.merge(
at: ( data[:at] ? send(data[:at]) : nil), actor: self
- ).except(:watch)
+ ).except(:watch, :if)
need_to_fire = case (ifarg = data[:if])
when Proc
instance_exec &ifarg
when Symbol
send(ifarg)
\ No newline at end of file