diff --git a/app/controllers/locales_controller.rb b/app/controllers/locales_controller.rb index bf2295dd..6cd54300 100644 --- a/app/controllers/locales_controller.rb +++ b/app/controllers/locales_controller.rb @@ -1,6 +1,6 @@ class LocalesController < ApplicationController def choose - cookies[:locale] = params[:locale] if valid_locale?(params[:locale]) + cookies.permanent[:locale] = params[:locale] if valid_locale?(params[:locale]) origin = params[:return_to] || :back redirect_to origin end