effective_email_templates 1.1.4 → 1.2.0
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: 5a825ba548fb85d4457abfdbfb0275fbb2c587e48ab30e0e397b41ea9d2f42c3
|
4
|
+
data.tar.gz: 7626c2168d86a547aa3a13e45f52c236eeb5e65c619b8a2c51bfb39f65d2fd3f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 29b61247525c81716517797802fb7a21f0bfd7176c76ba7f9302f6988fd3741c031aac688ba5104b5b7a41a45454ba067fc119e16f0a42166bac41310e88726d
|
7
|
+
data.tar.gz: 671760817de5c14bb20712ef01925bf637301f3ff8dee6d5c93ef77b8e5fa85b245541c8e871af1216d182eba3c77d38bc85e39f29d9177aa9928a1767e2abe4
|
@@ -4,7 +4,9 @@ module EffectiveEmailTemplatesMailer
|
|
4
4
|
extend ActiveSupport::Concern
|
5
5
|
|
6
6
|
def mail(headers = {}, &block)
|
7
|
-
email_template = Effective::EmailTemplate.where(template_name: action_name).first
|
7
|
+
email_template = Effective::EmailTemplate.where(template_name: action_name).first
|
8
|
+
return super() if email_template.blank?
|
9
|
+
|
8
10
|
assigns = (@assigns || {})
|
9
11
|
|
10
12
|
# Parse assigns. Special keys for body and subject.
|
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.
|
4
|
+
version: 1.2.0
|
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-10-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|