fix locale 2

This commit is contained in:
Andreas Stephanides
2015-07-12 09:41:02 +02:00
parent f16c9a89d5
commit 880ca238ad
2 changed files with 11 additions and 4 deletions

View File

@@ -95,7 +95,9 @@ class HomeController < ApplicationController
end
end
def language
redirect_to request.referer || root_path
redirect_to :back
rescue ActionController::RedirectBackError
redirect_to :root
end
def choose_contact_topics
authorize! :doadmin, User