caffeinate 0.7.0 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/models/caffeinate/campaign.rb +1 -3
- data/lib/caffeinate/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ebd5c45c4d4fd056ba4ff2080a464e2151bc3245849c709d9f81d396c4b36523
|
|
4
|
+
data.tar.gz: 0ed91aa4d77c8b368fadc721ffdd81bdd70a249cebe077fadcd2161b6ebf6dab
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0dc2f09d245f8936bf55ab0c00d8a4cd4b8651db10f9656a66869088297c43c694b1c71356421216d59a27376fac89962bb8dbd02dfd7d648e65578f2cfb1900
|
|
7
|
+
data.tar.gz: 3554585afc00fc341c8627ee67071c02ca8f60092f96545043c4c06447a4c6c0ae37e3292cda9293047670471c7b16843dfa3a5b04b4b215ea93562d7050d22b
|
|
@@ -35,10 +35,8 @@ module Caffeinate
|
|
|
35
35
|
end
|
|
36
36
|
|
|
37
37
|
# Checks to see if the subscriber exists.
|
|
38
|
-
#
|
|
39
|
-
# Use `find_by` so that we don't have to load the record twice. Often used with `subscribes?`
|
|
40
38
|
def subscriber(record, **args)
|
|
41
|
-
|
|
39
|
+
caffeinate_campaign_subscriptions.find_by(subscriber: record, **args)
|
|
42
40
|
end
|
|
43
41
|
|
|
44
42
|
# Check if the subscriber exists
|
data/lib/caffeinate/version.rb
CHANGED