locale_mailer 0.2.8 → 0.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/locale_mailer/concern.rb +2 -3
- data/lib/locale_mailer/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b347bdafcb4cde67c76e2f3ea84743fc122a5226
|
|
4
|
+
data.tar.gz: 3024cee1cfc11b9e52a8a1f1fe8c0613003596fe
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3f16260c415e8008ee81fdd1aa2a426b1f8fad2177ed7946e0e173e54f382295e68fc12377bdc6ea0602b683af3aa54f35a031ca2defd46cb329dcf06b0621dd
|
|
7
|
+
data.tar.gz: edb27c26e13763639bb9f0f440c2708deefe601474797706d5c7c8569dae88fd5419329e1472ddb05f96785637b41a98c8f3afbe13e8cc4a5f80a126284ac9a2
|
|
@@ -33,12 +33,11 @@ module LocaleMailer
|
|
|
33
33
|
elsif I18n.exists? action_i18n_path(options), I18n.locale
|
|
34
34
|
options[:subject] = subject_from_locale(options) unless options.key?(:subject)
|
|
35
35
|
mail_without_localized_templates options do |format|
|
|
36
|
-
html_body = body_from_locale options
|
|
37
36
|
format.html {
|
|
38
|
-
|
|
37
|
+
body_from_locale options.reverse_merge(layout: _layout(:html))
|
|
39
38
|
}
|
|
40
39
|
format.text {
|
|
41
|
-
Loofah.scrub_fragment(
|
|
40
|
+
Loofah.scrub_fragment(body_from_locale(options.reverse_merge(layout: _layout(:text))), LocaleMailer::A2HREF).to_text
|
|
42
41
|
}
|
|
43
42
|
end
|
|
44
43
|
else
|