effective_email_templates 1.1.2 → 1.1.4

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: 0a2f895f0cecf93fc54a7e2bc9498970a22523bc07da7188cd74e3b6a3b80009
4
+ data.tar.gz: 2e3731ad4ca65b2db718d07cde969c56167403c80bfe0ce396d3454a6f70f05b
5
5
  SHA512:
6
- metadata.gz: a31ed5dba96c21b94f282faf4023e66de6fd809e1f15ffdaf22d6179d158d0c82c01535fced61ca074d770b02ab5c9188919bca703a00ff5ae982cdf8f89d3c0
7
- data.tar.gz: 8f5cf72c409cc8d4ef3a52ef12068af275963d7e1ee5b66efd96268b812df598c794eaea5fa612e8e314fe54a8a584fed7dd43216b07e7db864e9f163f21dc82
6
+ metadata.gz: 0afb4d07dce4adb35ca0921361f7be65cd350dcd1c0fa9b995071ae839c62c2a38d8602d39852484cecc0a7a9fc6b270f42df7c4d919e943c3fb2ae05b4c1af1
7
+ data.tar.gz: dc7fb47226b0117134be8dcedd4f368551e3f1aced4d53b28f8091347f74ce51555afecc0d6420df815ddfe44125525e5b204c195e6bef499b34e707a4baf7a8
@@ -10,15 +10,15 @@ class EffectiveEmailTemplatesDatatable < Effective::Datatable
10
10
  col :template_name, label: 'Name'
11
11
 
12
12
  col :from do |email_template|
13
- html_escape(email_template.from)
13
+ sanitize(email_template.from)
14
14
  end
15
15
 
16
16
  col :cc do |email_template|
17
- html_escape(email_template.cc)
17
+ sanitize(email_template.cc)
18
18
  end
19
19
 
20
20
  col :bcc do |email_template|
21
- html_escape(email_template.bcc)
21
+ sanitize(email_template.bcc)
22
22
  end
23
23
 
24
24
  col :subject
@@ -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.4'.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.4
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-09-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails