locale_mailer 0.2.5 → 0.2.6
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 +1 -1
- data/lib/locale_mailer/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 57be5b4c627a447e8d9935037e27707b5b2a89d1
|
|
4
|
+
data.tar.gz: 99fce849b21c60fc67fe11d3f9e158b752ce1598
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9a1282fe342337e6b498fc1e97e79062948290a5a9420b82fbeec07c08cad0a96d5ca6c101dbabf1d78a01549ca0aa5c0d15d8b72c3165e162d70e4fd0c22aef
|
|
7
|
+
data.tar.gz: 6105e6596406a66f6014f5823592bdf0d53582106345b27123538d78a68f82ec161ceff7e5fbb9c81bcd3e5c41c5ecae29716a018bb75525212c56a0e01f394a
|
|
@@ -27,7 +27,7 @@ module LocaleMailer
|
|
|
27
27
|
|
|
28
28
|
def mail_with_localized_templates(options = {}, &block)
|
|
29
29
|
options.symbolize_keys!
|
|
30
|
-
if template_exists? action_name, mailer_name
|
|
30
|
+
if template_exists? options[:template_name] || action_name, options[:template_path] || mailer_name
|
|
31
31
|
mail_without_localized_templates(options, &block)
|
|
32
32
|
elsif I18n.exists? action_i18n_path(options), I18n.locale
|
|
33
33
|
options[:subject] = subject_from_locale(options) unless options.key?(:subject)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: locale_mailer
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- itkin
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-10-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: actionmailer
|