From 21928d23ee0e27894980fa01c3dfec4223d6853c Mon Sep 17 00:00:00 2001 From: saurabhbhatia Date: Wed, 27 Nov 2013 20:22:06 +0800 Subject: [PATCH] Added redirect for after sign_in --- app/controllers/application_controller.rb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index a950b935..1423c1d6 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -449,6 +449,15 @@ class ApplicationController < ActionController::Base objects end + def after_sign_in_path_for(resource) + if current_user.email.blank? + Rails.logger.info"@@@@@@@"+current_user.inspect + admin_users_new_interface_edit_user_data_path(current_user) + else + root_path + end + end + private def mobile_device?