lib/reactor/models/concerns/eventable.rb in reactor-0.2.1 vs lib/reactor/models/concerns/eventable.rb in reactor-0.2.2

- old
+ new

@@ -24,10 +24,10 @@ def schedule_events self.class.events.each do |name, data| event = data.merge( actor: ( data[:actor] ? send(data[:actor]) : self ), - target: ( data[:target] ? send(data[:target]) : nil), + target: ( data[:target] ? self : nil), at: ( data[:at] ? send(data[:at]) : nil) ).except(:watch, :if) need_to_fire = case (ifarg = data[:if]) when Proc instance_exec &ifarg \ No newline at end of file