reactor 0.2.4 → 0.2.5
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/subscriber.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: 98effb7058e42105083b6140ae324fa6bbc09c15
|
4
|
+
data.tar.gz: 2d869d077ad24edaf0ca70d6afa35eab454d549b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 480067daea1832ef2dd8f06f011e45cac9c75e2662e69dacf0afb2149286fe853000f50310e18461b5c18261b19487cbf435efb25497089d2f18a61c0f2ab11d
|
7
|
+
data.tar.gz: 10f4c872fe0ec5898f0b7c34e5d36bb51735b1ef7229b8f7dd23a26cb8f2f1851e356e6c7b25e2ed55a52226410b7a9cecefa191bb24c7ad09815dbb4a14f149
|
@@ -32,7 +32,7 @@ class Reactor::Subscriber < ActiveRecord::Base
|
|
32
32
|
define_singleton_method :exists! do
|
33
33
|
chain = where(event: name)
|
34
34
|
data.each do |key, value|
|
35
|
-
chain = chain.where("data @>
|
35
|
+
chain = chain.where("subscribers.data @> ?", "#{key}=>#{value}")
|
36
36
|
end
|
37
37
|
chain.first_or_create!(data)
|
38
38
|
end
|
data/lib/reactor/version.rb
CHANGED