diff options
author | Felipe Artur <felipefac@gmail.com> | 2016-05-06 17:59:45 -0300 |
---|---|---|
committer | Felipe Artur <felipefac@gmail.com> | 2016-05-16 14:56:32 -0300 |
commit | 7bb84e64979edda8e76f077bd58aeb35857aec23 (patch) | |
tree | 49af72a948475761144a1aa5c6f42b33debba813 /app/controllers/registrations_controller.rb | |
parent | 0baadd6cff63d5ac0048043381a0b7daff6e01c3 (diff) | |
download | gitlab-ce-7bb84e64979edda8e76f077bd58aeb35857aec23.tar.gz |
Change landing page when skipping confirmation email and add documentation
Diffstat (limited to 'app/controllers/registrations_controller.rb')
-rw-r--r-- | app/controllers/registrations_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/registrations_controller.rb b/app/controllers/registrations_controller.rb index 352bff19383..26eb15f49e4 100644 --- a/app/controllers/registrations_controller.rb +++ b/app/controllers/registrations_controller.rb @@ -37,8 +37,8 @@ class RegistrationsController < Devise::RegistrationsController super end - def after_sign_up_path_for(_resource) - users_almost_there_path + def after_sign_up_path_for(user) + user.confirmed_at.present? ? dashboard_projects_path : users_almost_there_path end def after_inactive_sign_up_path_for(_resource) |