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: 27a4c6ef0659bba64c76e45a9363fe649d2316ac988ef56bcd3fae6e87efe13f
4
- data.tar.gz: effe7e9aa525fae2923b0e195ea3ec81ed492944e2cf7616f3db7af58197218d
3
+ metadata.gz: 8ba53c8fd6aed111fca06838d4095c43968032cd0b99dc14cccefb4781c74678
4
+ data.tar.gz: c460758e1f9faace00d5aa93b75f9bb8ec1658a990490a2486f9e569c25a0d9a
5
5
  SHA512:
6
- metadata.gz: a31ed5dba96c21b94f282faf4023e66de6fd809e1f15ffdaf22d6179d158d0c82c01535fced61ca074d770b02ab5c9188919bca703a00ff5ae982cdf8f89d3c0
7
- data.tar.gz: 8f5cf72c409cc8d4ef3a52ef12068af275963d7e1ee5b66efd96268b812df598c794eaea5fa612e8e314fe54a8a584fed7dd43216b07e7db864e9f163f21dc82
6
+ metadata.gz: af09166b147429ab8e85aaa7b3774a3aee90b762a57286d368cb3c0e1076d696d0489ebe850c69d872da52307658286b6874e73b75d5713c1012e8d86ec2b2e1
7
+ data.tar.gz: deabb27642aa03325530cc440f448df8b8a12bb2db15de4dad5bfc473e7b588c305ac9f677a34e2b264d9fb8c6586478e142e5f82781d3209cbd20792fb1e061
@@ -1,5 +1,4 @@
1
- # HasOneEmailReview
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
- subject = assigns.delete(:subject) || headers[:subject] || headers['subject']
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
@@ -1,3 +1,3 @@
1
1
  module EffectiveEmailTemplates
2
- VERSION = '1.1.2'.freeze
2
+ VERSION = '1.1.3'.freeze
3
3
  end
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.2
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-01-24 00:00:00.000000000 Z
11
+ date: 2022-03-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails