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
@@ -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: