forked from OpenNeo/impress
8 lines
208 B
Ruby
8 lines
208 B
Ruby
|
class LocalesController < ApplicationController
|
||
|
def choose
|
||
|
cookies[:locale] = params[:locale] if valid_locale?(params[:locale])
|
||
|
origin = params[:return_to] || :back
|
||
|
redirect_to origin
|
||
|
end
|
||
|
end
|