using wrong var here

This commit is contained in:
Sam 2015-02-12 14:40:07 +11:00
parent e96dbd6f06
commit 3c6aede1aa

View File

@ -45,7 +45,7 @@ module I18n
LOAD_MUTEX = Mutex.new
def load_locale(locale)
LOAD_MUTEX.synchronize do
return if @loaded_locales.include?(config.locale)
return if @loaded_locales.include?(locale)
if @loaded_locales.empty?
# load all rb files