devise_mailjet 0.2.4 → 0.2.5
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/lib/devise_mailjet/mailjet_list_api_mapper.rb +1 -1
- data/lib/devise_mailjet/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: 5e022a3ce24f32f25f5c79ac63d21f7a07a84fb62a6c8ab65c4795aa358d556d
|
4
|
+
data.tar.gz: caefb3f78f7fdb9ebff1c7c546a85c3111212ea8ce6b9be8dbc39b06eb1f91f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 942e1be3abb33a6568bd890cd3f045b024ec2b31e3444302960db6f4dd5fa2d10bc4717caef642422dc9147ad2d24fb58fd05eeb5f7d67504138aa4e3b5ac6ff
|
7
|
+
data.tar.gz: d97fd5b201f2035cd320dbe41e379deb0e71b9fb5b8cce859a97f932e4a2f0961bf9cf22cbc9157c87931f7da9b1f7f29c71ba50e7aa5c1c916175a883849274
|
@@ -63,7 +63,7 @@ module Devise
|
|
63
63
|
# Beware: [GET] parameters are not the same than [POST/PUT] parameters
|
64
64
|
lr = ::Mailjet::Listrecipient.all(contacts_list: list_id, contact: contact_id, limit: 1).first
|
65
65
|
# Make sure the API returned the record we were looking for
|
66
|
-
lr = nil unless lr.list_id == list_id && lr.contact_id == contact_id
|
66
|
+
lr = nil unless lr && lr.list_id == list_id && lr.contact_id == contact_id
|
67
67
|
yield lr, list_id, contact_id if block_given?
|
68
68
|
end
|
69
69
|
end
|