rack-locale_chooser 1.5 → 1.6
Sign up to get free protection for your applications and to get access to all the features.
@@ -86,9 +86,11 @@ module Rack::LocaleChooser
|
|
86
86
|
|
87
87
|
def set_locale
|
88
88
|
I18n.locale = @env['rack.locale'] = locale.to_sym
|
89
|
-
|
89
|
+
begin
|
90
90
|
@env['rack.city'] = geo_record.city
|
91
91
|
@env['rack.country_code'] = geo_record.country_code
|
92
|
+
rescue
|
93
|
+
return nil
|
92
94
|
end
|
93
95
|
end
|
94
96
|
|
metadata
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-locale_chooser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 3
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: "1.
|
8
|
+
- 6
|
9
|
+
version: "1.6"
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- "Jefferson Jean Martins Gir\xC3\xA3o"
|