X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/53aa7259bb0612eb48a17d0b954ad71ea37d87a4..ba888f5c7d5ae453e27973e1e57f3c6e0e4f3711:/app/controllers/sessions_controller.rb diff --git a/app/controllers/sessions_controller.rb b/app/controllers/sessions_controller.rb index 5b46d67d0..9489553a8 100644 --- a/app/controllers/sessions_controller.rb +++ b/app/controllers/sessions_controller.rb @@ -38,11 +38,7 @@ class SessionsController < ApplicationController referer = safe_referer(params[:referer]) if params[:referer] - if referer - redirect_to referer - else - redirect_to :controller => "site", :action => "index" - end + redirect_to referer || { :controller => "site", :action => "index" } end end