X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/53aa7259bb0612eb48a17d0b954ad71ea37d87a4..2c497aee7a45c31ae6d1a448c35ce1b3f0ebb608:/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