summaryrefslogtreecommitdiff
path: root/app/controllers/registrations_controller.rb
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2015-06-22 15:08:02 -0700
committerStan Hu <stanhu@gmail.com>2015-06-23 04:39:49 -0700
commite80d7a804f335447c8c4db8d8de3532957d80ec8 (patch)
tree0a6e720f703a922a69d59d64054cbde74d542d42 /app/controllers/registrations_controller.rb
parent883438970df30ac7101d8f32b30007c4248c75d5 (diff)
downloadgitlab-ce-e80d7a804f335447c8c4db8d8de3532957d80ec8.tar.gz
Fix error when deleting a user who has projects
Closes #1856 Closes https://github.com/gitlabhq/gitlabhq/issues/9394
Diffstat (limited to 'app/controllers/registrations_controller.rb')
-rw-r--r--app/controllers/registrations_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/registrations_controller.rb b/app/controllers/registrations_controller.rb
index 6ccc7934f2f..3b3dc86cb68 100644
--- a/app/controllers/registrations_controller.rb
+++ b/app/controllers/registrations_controller.rb
@@ -6,7 +6,7 @@ class RegistrationsController < Devise::RegistrationsController
end
def destroy
- DeleteUserService.new.execute(current_user)
+ DeleteUserService.new(current_user).execute(current_user)
respond_to do |format|
format.html { redirect_to new_user_session_path, notice: "Account successfully removed." }