RubyGems
npm
Organizations
Log in
Sign up
RubyGems
localyzed
Versions diffs
0.0.2.3 → 0.0.2.4
localyzed 0.0.2.3 → 0.0.2.4
Sign up to get
free
protection for your applications and to get access to all the features.
Files changed (3)
hide
show
data/lib/localyzed/controllers/action_controller_extension.rb
+1
-1
data/lib/localyzed/version.rb
+1
-1
metadata
+1
-1
data/lib/localyzed/controllers/action_controller_extension.rb
CHANGED
Viewed
@@ -38,6 +38,6 @@ class ActionController::Base
38
38
end
39
39
40
40
def simplified_locale(locale)
41
-
locale.gsub(/(-|_).*$/,'')
41
+
locale.
to_s.
gsub(/(-|_).*$/,'')
.try(:to_sym)
42
42
end
43
43
end
data/lib/localyzed/version.rb
CHANGED
Viewed
@@ -1,3 +1,3 @@
1
1
module Localyzed
2
-
VERSION = "0.0.2.
3
"
2
+
VERSION = "0.0.2.
4
"
3
3
end
metadata
CHANGED
Viewed
@@ -1,7 +1,7 @@
1
1
--- !ruby/object:Gem::Specification
2
2
name: localyzed
3
3
version: !ruby/object:Gem::Version
4
-
version: 0.0.2.
3
4
+
version: 0.0.2.
4
5
5
prerelease:
6
6
platform: ruby
7
7
authors: