locale_mailer 0.2.5 → 0.2.6

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
  SHA1:
3
- metadata.gz: 1dd00ef7f3f32ac314a403785012618eed92a772
4
- data.tar.gz: b15a11cb8ac35375ea396d5eea9894ce9bd9bc2e
3
+ metadata.gz: 57be5b4c627a447e8d9935037e27707b5b2a89d1
4
+ data.tar.gz: 99fce849b21c60fc67fe11d3f9e158b752ce1598
5
5
  SHA512:
6
- metadata.gz: ca33bb3c6cc76662f04b092ded74b95f483310342dc02129bae386b840834c6d7cc938829d78cb1602c51d8943051e6eb343f433331bd7b82a0c4f09ba6c50d8
7
- data.tar.gz: 160adfc8a36ec0f7570a95621eab952cb028bc1a77fbff8a3581ef5ac562b351b6bf24439d795bf603ffa49517b5220293a673425bff6c7965d0a60d2bcff0f3
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)
@@ -1,3 +1,3 @@
1
1
  module LocaleMailer
2
- VERSION = "0.2.5"
2
+ VERSION = "0.2.6"
3
3
  end
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.5
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-09-06 00:00:00.000000000 Z
11
+ date: 2016-10-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionmailer