1
0
Fork 0
forked from OpenNeo/impress

locale cookie should be long-term, not a session cookie

This commit is contained in:
Emi Matchu 2013-01-11 11:48:40 -06:00
parent 0f49d3ed02
commit b22188fa4a

View file

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