localyzed 0.0.0.7 → 0.0.0.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Localyzed
2
- VERSION = "0.0.0.7"
2
+ VERSION = "0.0.0.8"
3
3
  end
metadata CHANGED
@@ -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.0.7
4
+ version: 0.0.0.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: