localyzed 0.0.0.7 → 0.0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,7 +11,7 @@ class ActionController::Base
|
|
11
11
|
|
12
12
|
# sets the locale by checking user data then request param then session data then retrieving accept language data
|
13
13
|
def set_locale
|
14
|
-
if Localyzed.user_interface.signed_in? and cl = Localyzed.user_interface.current.language and I18n.available_locales.include?(cl)
|
14
|
+
if Localyzed.user_interface && Localyzed.user_interface.signed_in? and cl = Localyzed.user_interface.current.language and I18n.available_locales.include?(cl)
|
15
15
|
locale = I18n.locale = cl
|
16
16
|
session[:locale] = locale
|
17
17
|
else
|
data/lib/localyzed/version.rb
CHANGED