Skip to content

Commit

Permalink
resolve change locale fail issue
Browse files Browse the repository at this point in the history
  • Loading branch information
quake committed Dec 22, 2011
1 parent 19b8d71 commit 620720e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/controller_i18n.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def set_locale
end

def change_locale
cookies[:locale] = current_user.locale unless current_user.locale.blank?
cookies[:locale] = current_user.locale if logged_in? && current_user.locale.present?
end

def setup_cookies_locale
Expand Down

0 comments on commit 620720e

Please sign in to comment.