forked from OpenNeo/impress
locale cookie should be long-term, not a session cookie
This commit is contained in:
parent
0f49d3ed02
commit
b22188fa4a
1 changed files with 1 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
||||||
class LocalesController < ApplicationController
|
class LocalesController < ApplicationController
|
||||||
def choose
|
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
|
origin = params[:return_to] || :back
|
||||||
redirect_to origin
|
redirect_to origin
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue