reactor 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/reactor/models/concerns/eventable.rb +1 -1
- data/lib/reactor/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 899765d039dc16a3ae752e6bf347c96b45ed0fac
|
4
|
+
data.tar.gz: 0b1aea882ae877eade8fc589c0c553e396c8443b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d7f4df1a877d2141c96cda533f1313e42c7a6616cfef2a69ee839142e02d2160205cc4b0f919ecda8e0b5be309115bfc47dc6df05e709f55c870e821a6ca9cc0
|
7
|
+
data.tar.gz: eccf1649e9a6fb011ae78d578336b0748008678f14a31b2e175ba24d427edffe075bb244ce16d79a33d050501e7dd88d67604eb84956fc57ff1ba27c76ed02a6
|
@@ -26,7 +26,7 @@ module Reactor::Eventable
|
|
26
26
|
self.class.events.each do |name, data|
|
27
27
|
event = data.merge(
|
28
28
|
actor: ( data[:actor] ? send(data[:actor]) : self ),
|
29
|
-
target: ( data[:target] ?
|
29
|
+
target: ( data[:target] ? self : nil),
|
30
30
|
at: ( data[:at] ? send(data[:at]) : nil)
|
31
31
|
).except(:watch, :if)
|
32
32
|
need_to_fire = case (ifarg = data[:if])
|
data/lib/reactor/version.rb
CHANGED