noticed 1.2.8 → 1.2.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/noticed/base.rb +3 -0
- data/lib/noticed/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: aab5129001fd96625a6a4141dfcf8aa93263b691fb663faa25e66153c5df9244
|
4
|
+
data.tar.gz: 22d30af822563d150c933bc5aeb2116386db73bcb114d82cf46059ae53c9407e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ecf9ce4e2be01cbb171a86f1fe10feb2931e2035c8f857f2b98951c5f8e299b9eadef7b0b1086f53b971f5fa5a31f266491c57f5715cf615b7acc7cf828f518
|
7
|
+
data.tar.gz: 8f896e1e98893d611697c10ebb30e6359a5cafefc9b54d6eff7a434b05eef90d055ed82e9e1d3ed61fcb76dbc2c0be4b5845ebdff799527e745507c919070585
|
data/lib/noticed/base.rb
CHANGED
@@ -69,6 +69,9 @@ module Noticed
|
|
69
69
|
def run_delivery(recipient, enqueue: true)
|
70
70
|
delivery_methods = self.class.delivery_methods.dup
|
71
71
|
|
72
|
+
# Set recipient to instance var so it is available to Notification class
|
73
|
+
@recipient = recipient
|
74
|
+
|
72
75
|
# Run database delivery inline first if it exists so other methods have access to the record
|
73
76
|
if (index = delivery_methods.find_index { |m| m[:name] == :database })
|
74
77
|
delivery_method = delivery_methods.delete_at(index)
|
data/lib/noticed/version.rb
CHANGED