effective_email_templates 1.5.0 → 1.5.1
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: 1522926c50dd2f6874bc8cb41b906b4c8c2d31b8f0952ae1dc7482b647dc184c
|
4
|
+
data.tar.gz: 3cab7ba180c3eadfeb74e6c6806ed24b46b74408073eb94f04598b23776bdfce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 93d50932390ea0c38b202196451c58623f433a78d8d131b0568da75a1e44b0029653285934a1d311db7c7a658a2c78c969bbbabf78144e2335d4454ccd0fbfdb
|
7
|
+
data.tar.gz: 9b5fe215d1dd3bb1f2e05d1a5417536eb4a38f3a29c0369e0346562347c308b88a21fe9d96a4c1e6f017d926b01429aed989e9e8f0310d7f4754b4ed7c152675
|
@@ -53,7 +53,8 @@ module EffectiveEmailTemplates
|
|
53
53
|
content.gsub(match[1], '').strip if match
|
54
54
|
end
|
55
55
|
|
56
|
-
from = froms.find { |from| from.include?(attributes['from']) }
|
56
|
+
from = froms.find { |from| from.include?(attributes['from']) } if attributes['from'].present?
|
57
|
+
from ||= froms.first
|
57
58
|
|
58
59
|
email_template.assign_attributes(attributes)
|
59
60
|
email_template.assign_attributes(from: from)
|