From 07b9d80604f130c5958e24651e73e889c6e43bb7 Mon Sep 17 00:00:00 2001 From: Marin Jankovski Date: Fri, 11 Jul 2014 12:24:11 +0200 Subject: Use devise stored_location to redirect after signing for both public and private pages. --- app/controllers/application_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/controllers/application_controller.rb') diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 9cc63e5c1b9..d0546a441e1 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -68,7 +68,7 @@ class ApplicationController < ActionController::Base flash[:alert] = "Your account is blocked. Retry when an admin has unblocked it." new_user_session_path else - super + stored_location_for(:redirect) || stored_location_for(resource) || root_path end end -- cgit v1.2.1