activerecord-mlang 0.0.7 → 0.0.8

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: a19710b7c3a22a255dbe5ec007599dff63fb5f8d
4
- data.tar.gz: 54e3895862efbe44127e9ff93d8ff9d7afd830e1
3
+ metadata.gz: 65f9c56074f0f729bbf21d7792fb41cb2185c6a5
4
+ data.tar.gz: c0e5bf520d0a6deaf49c9a5fe7ccc7d62ecb252e
5
5
  SHA512:
6
- metadata.gz: 1f6f3adf6dd0c220667eb1fdc914b0022a7cfdba843d7599ffb37e11d9c33a9048f32f63be0e2df3348a25af2bb116d3191a1e39bf28cb7c2620dc737662d013
7
- data.tar.gz: aa4bb0d026fb8a5ceb213b741895fb6d916b783c90b475c5a2bb9240c252c0ccf57ddbe6163a37a4173311b8c0fd7b66d04e8e91d7ba28f1e37538017972f5bc
6
+ metadata.gz: c7a9b0374bbdeface0a84c3abd75ea74898faeca6aad3bee4628d12cac890c9eaec31a21925874510870b0fc8e256158d753debef302dccb718d54a7bc2c4912
7
+ data.tar.gz: ef1a59ce54638d120638d1adc86da2f02f1a1e3c88a5b21838cae9d1de1ad5bd2b71f7050fe27a32644ca64ef7b2ead39576d17cf2bb85c828459dcc4a1c34e0
@@ -53,7 +53,7 @@ module ActiveRecord
53
53
 
54
54
  def text(local_or_lang_id=nil)
55
55
  return nil if !self.persisted?
56
- local_or_lang_id ||= I18n.default_locale
56
+ local_or_lang_id ||= I18n.locale || I18n.default_locale
57
57
  lang_id = nil
58
58
  if local_or_lang_id.kind_of? Integer
59
59
  lang_id = local_or_lang_id if Lang.exists?(id: local_or_lang_id)
@@ -1,5 +1,5 @@
1
1
  module Activerecord
2
2
  module Mlang
3
- VERSION = "0.0.7"
3
+ VERSION = "0.0.8"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-mlang
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shinjiro Itagaki
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-08-11 00:00:00.000000000 Z
11
+ date: 2015-10-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler