1
0
Fork 0
forked from OpenNeo/impress
impress/app/controllers/locales_controller.rb

8 lines
218 B
Ruby
Raw Normal View History

class LocalesController < ApplicationController
def choose
cookies.permanent[:locale] = params[:locale] if valid_locale?(params[:locale])
origin = params[:return_to] || :back
redirect_to origin
end
end