effective_postmark 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3ad38ac05cb679e7d6a873dd77335e375509d348dd70bfa0dd036aec597b1d53
|
4
|
+
data.tar.gz: f736b293bede989795735bd97d1196bd66278173962b7f2d95a7d50d77d083a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa71507970666deeac958d1779bcf59d37a61d66df4cd5f4c002bacf4cfdfd47372e4c4235b1f14e7b01198ed8ffd1e3cacbe1f236cb170afdc774113de3b98d
|
7
|
+
data.tar.gz: dc70db2d2c8db52d8df1953d426af34029850089234da0e4bdc6e4d9e7f01eefa39a63b09492bad0789531bad71a86c855310fba538970a5160f59be16f92439
|
@@ -3,13 +3,13 @@ module EffectivePostmarkMailer
|
|
3
3
|
|
4
4
|
included do
|
5
5
|
# Make sure config.action_mailer.raise_delivery_errors = true
|
6
|
-
before_action do
|
6
|
+
before_action(unless: -> { Rails.env.test? || Rails.env.development? }) do
|
7
7
|
unless (Rails.application.config.action_mailer.raise_delivery_errors rescue false)
|
8
8
|
raise("Expected config.action_mailer.raise_delivery_errors to be true. Please update your environment for use with effective_postmark.")
|
9
9
|
end
|
10
10
|
end
|
11
11
|
|
12
|
-
rescue_from Postmark::InactiveRecipientError, with: :effective_postmark_inactive_recipient_error
|
12
|
+
rescue_from ::Postmark::InactiveRecipientError, with: :effective_postmark_inactive_recipient_error
|
13
13
|
end
|
14
14
|
|
15
15
|
def effective_postmark_inactive_recipient_error(exception)
|