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

- old
+ new

@@ -45,10 +45,10 @@ self.class.events.each do |name, data| if data[:at] && send("#{data[:watch] || data[:at]}_changed?") Reactor::Event.delay.reschedule name, at: send(data[:at]), actor: ( data[:actor] ? send(data[:actor]) : self ), - target: ( data[:target] ? send(data[:target]) : nil), + target: ( data[:target] ? self : nil), was: send("#{data[:at]}_was") end if data[:if] need_to_fire = case (ifarg = data[:if]) \ No newline at end of file