pg_rails 7.0.8.pre.alpha.60 → 7.0.8.pre.alpha.61
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/pg_engine/app/mailers/pg_engine/base_mailer.rb +4 -2
- data/pg_engine/app/models/email.rb +1 -0
- data/pg_rails/lib/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: 8848d2ec40bf17d44818d3f7c7b0f995d27928796938009d520c42a08067dc7f
|
4
|
+
data.tar.gz: 1064716fdafdb011dc4968fac27f5801c4c6378d02d1ed5d9fd1716b2dc54e8b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ac17d43ca0881a1a21a509eb2003b24829aa78f1f1b0b493ccddda06b4914516d300d55db8d1db95d49e81cee675ae19b200c95516ba44c98c77b56aa986fcd
|
7
|
+
data.tar.gz: 023e7a19edc3f622c57ea622d9a184012b547ad89816745f07b8d048a0b208b9bedca6c8f483021eca02a041d554d73a29f803bf2766654b1915c028a4843f3e
|
@@ -15,12 +15,15 @@ module PgEngine
|
|
15
15
|
|
16
16
|
rescue_from StandardError do |err|
|
17
17
|
pg_warn err, :error
|
18
|
-
@email.
|
18
|
+
if @email.present?
|
19
|
+
@email.update_columns(status: :failed, status_detail: err.to_s) # rubocop:disable Rails/SkipsModelValidations
|
20
|
+
end
|
19
21
|
end
|
20
22
|
|
21
23
|
protected
|
22
24
|
|
23
25
|
def mail(*args)
|
26
|
+
@footer_href = root_url(m: @email.hashid)
|
24
27
|
super(*args).tap do |message|
|
25
28
|
# message.mailgun_options = {
|
26
29
|
# 'tag' => email.tags,
|
@@ -35,4 +38,3 @@ end
|
|
35
38
|
# # TODO: testear
|
36
39
|
# si from está vacío
|
37
40
|
# si body está vacío
|
38
|
-
# si se lanza PgEngine::BaseMailer::MailNotDelivered
|
data/pg_rails/lib/version.rb
CHANGED