diff options
author | Aishwarya Subramanian <asubramanian@gitlab.com> | 2019-09-06 04:24:06 +0530 |
---|---|---|
committer | Aishwarya Subramanian <asubramanian@gitlab.com> | 2019-09-06 04:24:06 +0530 |
commit | 7aea729266a6febdbdb28a29dc09b9552c14c699 (patch) | |
tree | fda19daa1783ba12307f670bf2c7c78a08529665 | |
parent | 73b9ba96d5670c9159ae4b442ce4956d5ffd95a5 (diff) | |
download | gitlab-ce-marketo_lead_trials.tar.gz |
Using new_user object instead of resourcemarketo_lead_trials
-rw-r--r-- | app/controllers/registrations_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/registrations_controller.rb b/app/controllers/registrations_controller.rb index 0a07c015081..fb631f09f10 100644 --- a/app/controllers/registrations_controller.rb +++ b/app/controllers/registrations_controller.rb @@ -20,7 +20,7 @@ class RegistrationsController < Devise::RegistrationsController super do |new_user| persist_accepted_terms_if_required(new_user) - yield resource if block_given? + yield new_user if block_given? end rescue Gitlab::Access::AccessDeniedError redirect_to(new_user_session_path) |