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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0a2f895f0cecf93fc54a7e2bc9498970a22523bc07da7188cd74e3b6a3b80009
|
4
|
+
data.tar.gz: 2e3731ad4ca65b2db718d07cde969c56167403c80bfe0ce396d3454a6f70f05b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
13
|
+
sanitize(email_template.from)
|
14
14
|
end
|
15
15
|
|
16
16
|
col :cc do |email_template|
|
17
|
-
|
17
|
+
sanitize(email_template.cc)
|
18
18
|
end
|
19
19
|
|
20
20
|
col :bcc do |email_template|
|
21
|
-
|
21
|
+
sanitize(email_template.bcc)
|
22
22
|
end
|
23
23
|
|
24
24
|
col :subject
|
@@ -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.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-
|
11
|
+
date: 2022-09-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|