tml-rails 5.1.1 → 5.1.2

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: c55b2155d5864d1fcd05e6f0fa8ec005b00336af
4
- data.tar.gz: 4e22781c61854eec7e9221f0904d970b214ce954
3
+ metadata.gz: a537d22885f54958a20638d66b8356792d7e6e05
4
+ data.tar.gz: df0675cdbf1573d18b02732bf2df544b9e9d953a
5
5
  SHA512:
6
- metadata.gz: 6ca9668d6855391a64a53d80179c481c02242ded5147637307e0bb926a67d78638e8f7d587eafc5e6ce027b681523487c13e64263244abaea9c8ab062b07bbd9
7
- data.tar.gz: e5afe0332d5f5e249f34a0b61aa7623b994b92b490b30cc7b69c22de93c5e254a1240f88a2e830ab0879b4bd3e7d0ec38f2bc172b3922fa208d4a8f87d13d82e
6
+ metadata.gz: 03ab8362f41ec90f7e5d252a4e5a9184cfbafc707ab86c1b3571780ca823d7d52213f2f924b60eefba2abdb3cc2a687f44f2c452905b631e6fd6bc312e1237eb
7
+ data.tar.gz: de38a043dfa40efb0776be48113996df20c295ec383b2cf0953b9ae794a47600cd4130f171f5e798cb6cf43828ae5b5eac72d5b3922862a80fd0811e7217af13
@@ -63,11 +63,8 @@ module I18n
63
63
  default_key = super(application.default_locale, key, scope, options)
64
64
  return default_key if key.to_s.match(/^(support|i18n)/)
65
65
 
66
- if default_key.nil?
67
- default_key = key.to_s.gsub('_', ' ').capitalize
68
- end
66
+ default_key ||= key.to_s.split('.').last.gsub('_', ' ').capitalize
69
67
 
70
- default_key ||= key
71
68
  if default_key.is_a?(String)
72
69
  translated_key = application.language(locale.to_s).translate(convert_to_tml(default_key), options, options)
73
70
  elsif default_key.is_a?(Hash)
@@ -30,5 +30,5 @@
30
30
  #++
31
31
 
32
32
  module TmlRails
33
- VERSION = '5.1.1'
33
+ VERSION = '5.1.2'
34
34
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tml-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.1.1
4
+ version: 5.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Berkovich
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-22 00:00:00.000000000 Z
11
+ date: 2015-11-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails