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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a6df7bd9e323b7595f81c0978d5835c968167c88
4
- data.tar.gz: d043f9573a4e886650d10e7381bad0569c3bf8f5
3
+ metadata.gz: b347bdafcb4cde67c76e2f3ea84743fc122a5226
4
+ data.tar.gz: 3024cee1cfc11b9e52a8a1f1fe8c0613003596fe
5
5
  SHA512:
6
- metadata.gz: f6cf68a2223a2ac8c9bc7ecd141240025fcca3d99455db1a8c7c54333d050466b4306384914a1b56bec03291d923de5d53046b738bb09f118fc4c2b313f48821
7
- data.tar.gz: f51e8be8c1833543c22a3eb33e10cdf4ddd6f7b164d1deb3e748eb148f9a8172b7b5dbf850c78886fac55166d94b226b3eaf1f30eca81773859b4e316996f8ee
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
- html_body
37
+ body_from_locale options.reverse_merge(layout: _layout(:html))
39
38
  }
40
39
  format.text {
41
- Loofah.scrub_fragment(html_body, LocaleMailer::A2HREF).to_text
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
@@ -1,3 +1,3 @@
1
1
  module LocaleMailer
2
- VERSION = "0.2.8"
2
+ VERSION = "0.2.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: locale_mailer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.8
4
+ version: 0.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - itkin