diff options
author | Nick Thomas <nick@gitlab.com> | 2017-06-02 16:18:24 +0300 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2017-06-05 15:08:06 +0300 |
commit | 158581a447bb4976161eca26ddcb2fccd25888ab (patch) | |
tree | 37c8ba0b0c21059246f351acb318e4f848606297 /app/controllers/registrations_controller.rb | |
parent | c34107608ecc5c36e80a748eb4c9b88d2b1157cf (diff) |
Refactor the DeleteUserWorker
Diffstat (limited to 'app/controllers/registrations_controller.rb')
-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 3ca14dee33c..cd2003586be 100644 --- a/app/controllers/registrations_controller.rb +++ b/app/controllers/registrations_controller.rb @@ -25,7 +25,7 @@ class RegistrationsController < Devise::RegistrationsController end def destroy - DeleteUserWorker.perform_async(current_user.id, current_user.id) + current_user.delete_async(deleted_by: current_user) respond_to do |format| format.html do |