effective_email_templates 1.1.2 → 1.1.3
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: 8ba53c8fd6aed111fca06838d4095c43968032cd0b99dc14cccefb4781c74678
|
4
|
+
data.tar.gz: c460758e1f9faace00d5aa93b75f9bb8ec1658a990490a2486f9e569c25a0d9a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: af09166b147429ab8e85aaa7b3774a3aee90b762a57286d368cb3c0e1076d696d0489ebe850c69d872da52307658286b6874e73b75d5713c1012e8d86ec2b2e1
|
7
|
+
data.tar.gz: deabb27642aa03325530cc440f448df8b8a12bb2db15de4dad5bfc473e7b588c305ac9f677a34e2b264d9fb8c6586478e142e5f82781d3209cbd20792fb1e061
|
@@ -1,5 +1,4 @@
|
|
1
|
-
#
|
2
|
-
# Allows any model to easily review an email template and make changes to the body
|
1
|
+
# Added to effective email templates mailers
|
3
2
|
|
4
3
|
module EffectiveEmailTemplatesMailer
|
5
4
|
extend ActiveSupport::Concern
|
@@ -12,7 +11,8 @@ module EffectiveEmailTemplatesMailer
|
|
12
11
|
body = assigns.delete(:body) || headers[:body] || headers['body']
|
13
12
|
email_template.body = body if body.present?
|
14
13
|
|
15
|
-
|
14
|
+
# Ignore the subject when passed in via mail method subject: key.
|
15
|
+
subject = assigns.delete(:subject)
|
16
16
|
email_template.subject = subject if subject.present?
|
17
17
|
|
18
18
|
# Add any _url helpers
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_email_templates
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code and Effect
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-03-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|