summaryrefslogtreecommitdiff
path: root/app/controllers/registrations_controller.rb
diff options
context:
space:
mode:
authorFelipe Artur <felipefac@gmail.com>2016-05-06 17:59:45 -0300
committerFelipe Artur <felipefac@gmail.com>2016-05-16 14:56:32 -0300
commit7bb84e64979edda8e76f077bd58aeb35857aec23 (patch)
tree49af72a948475761144a1aa5c6f42b33debba813 /app/controllers/registrations_controller.rb
parent0baadd6cff63d5ac0048043381a0b7daff6e01c3 (diff)
downloadgitlab-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.rb4
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)