flame-r18n 1.1.1 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/flame/r18n.rb +1 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 69bd2e6db6ed7abde28c22f4492b15b4178b29e1
4
- data.tar.gz: 9a378e6ba2e23b69d09365d84059dbda391b8a67
3
+ metadata.gz: 8daf054a8ea79ca57a77ae6e3e5e240bfa94627d
4
+ data.tar.gz: 01775fe27ded5a3d85ead697773fbd51c08327fd
5
5
  SHA512:
6
- metadata.gz: 3f9d73601ce2aef09de850fd05a32860b9462b785392e402788208aaa64d9e2248fcca68c429ad5846d68203b7cc0059ba53c8048b0fbe2b9f4eccb80a0d2096
7
- data.tar.gz: eada5ba6df5ae02f72e531819cd3a8abb90556a6b0c8614ddc61c8c56c0ae97cc47959e1afa4af42e785e87cd0d9aee9d580b0813ffa6557f057234820a8bf9f
6
+ metadata.gz: 5741b0494fdfb8cef18c0b54e5790ba9ed4f681a6e03c5b0d9d639683f4869af0c26ac1ed0baa7e79944a6d3ef641fd7c6efaa40d53c641a1cd095a052ebdeed
7
+ data.tar.gz: e364419d620577191e8e6c4a2a1726057e9e73efeb9d0061c7ecff557729c08ffe1405a0aa4ccaff4332180aef81684c235ffabbab2b6e6ff82a2dbfca8bf56b
data/lib/flame/r18n.rb CHANGED
@@ -41,6 +41,7 @@ module Flame
41
41
  end
42
42
 
43
43
  def preferred_locale
44
+ return super if defined? super
44
45
  params[:locale] || session[:locale]
45
46
  end
46
47
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flame-r18n
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Popov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-28 00:00:00.000000000 Z
11
+ date: 2016-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: flame