Skip to content

Commit

Permalink
call cookie_locale_param instead of cookie_param
Browse files Browse the repository at this point in the history
  • Loading branch information
fosterfarrell9 committed Sep 18, 2020
1 parent aa39f5a commit ea5b1b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def store_user_location!

def set_locale
I18n.locale = current_user.try(:locale) || locale_param ||
cookie_param || I18n.default_locale
cookie_locale_param || I18n.default_locale
unless user_signed_in?
cookies[:locale] = I18n.locale
end
Expand Down

0 comments on commit ea5b1b5

Please sign in to comment.