Skip to content
Snippets Groups Projects
Commit f04c5b27 authored by Felipe Artur's avatar Felipe Artur
Browse files

current_user.confirmed_at.present? => current_user.confirmed?

parent 5d031c86
No related branches found
No related tags found
No related merge requests found
Loading
@@ -38,7 +38,7 @@ class RegistrationsController < Devise::RegistrationsController
Loading
@@ -38,7 +38,7 @@ class RegistrationsController < Devise::RegistrationsController
end end
   
def after_sign_up_path_for(user) def after_sign_up_path_for(user)
user.confirmed_at.present? ? dashboard_projects_path : users_almost_there_path user.confirmed? ? dashboard_projects_path : users_almost_there_path
end end
   
def after_inactive_sign_up_path_for(_resource) def after_inactive_sign_up_path_for(_resource)
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment