Added redirect for after sign_in

This commit is contained in:
saurabhbhatia 2013-11-27 20:22:06 +08:00
parent 6d5dd4a80f
commit 21928d23ee
1 changed files with 9 additions and 0 deletions

View File

@ -449,6 +449,15 @@ class ApplicationController < ActionController::Base
objects objects
end 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 private
def mobile_device? def mobile_device?