Refactor routes in order to be compatible with Rails 4

This commit is contained in:
Stephan Kaag
2013-07-01 20:00:06 +02:00
parent d13166fa17
commit e39cc464b1
8 changed files with 16 additions and 16 deletions

View File

@ -44,7 +44,7 @@ class StaticController < ApplicationController
redirect_to(
if params[:redirect].blank? || params[:redirect].match(login_path)
root_path
"/"
else
params[:redirect]
end