lastobelus-merb_global 0.0.12 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/lib/merb_global/locale.rb +4 -0
- metadata +1 -1
data/Rakefile
CHANGED
@@ -4,7 +4,7 @@ require 'rake/rdoctask'
|
|
4
4
|
|
5
5
|
PLUGIN = "merb_global"
|
6
6
|
NAME = "merb_global"
|
7
|
-
GEM_VERSION = "0.0.
|
7
|
+
GEM_VERSION = "0.0.13"
|
8
8
|
AUTHORS = ["Alex Coles", "Maciej Piechotka"]
|
9
9
|
EMAIL = "merb_global@googlegroups.com"
|
10
10
|
HOMEPAGE = "http://trac.ikonoklastik.com/merb_global/"
|
data/lib/merb_global/locale.rb
CHANGED
@@ -131,6 +131,10 @@ module Merb
|
|
131
131
|
Merb::Global::config('locales', ['en'])
|
132
132
|
end
|
133
133
|
|
134
|
+
def default?
|
135
|
+
self.to_s == Merb::Global::Locale.supported_locales.first
|
136
|
+
end
|
137
|
+
|
134
138
|
def self.choose(except)
|
135
139
|
new((supported_locales - except.map{|e| e.to_s}).first)
|
136
140
|
end
|