Skip to content
Browse files

Set the locale only if user responds to it

  • Loading branch information...
1 parent adc7346 commit b43900663730eec4dc10a43be1740d734c035c92 @fesplugas fesplugas committed Feb 20, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/controllers/admin/base_controller.rb
View
2 app/controllers/admin/base_controller.rb
@@ -25,7 +25,7 @@ def reload_config_and_roles
end
def set_locale
- I18n.locale = admin_user.locale
+ I18n.locale = admin_user.locale if admin_user.respond_to?(:locale)
end
end

0 comments on commit b439006

Please sign in to comment.
Something went wrong with that request. Please try again.