Class: DeleteUserWorker

Inherits:
Object
  • Object
show all
Includes:
Sidekiq::Worker
Defined in:
app/workers/delete_user_worker.rb

Instance Method Summary collapse

Instance Method Details

#perform(current_user_id, delete_user_id, options = {}) ⇒ Object


4
5
6
7
8
9
# File 'app/workers/delete_user_worker.rb', line 4

def perform(current_user_id, delete_user_id, options = {})
  delete_user  = User.find(delete_user_id)
  current_user = User.find(current_user_id)

  DeleteUserService.new(current_user).execute(delete_user, options.symbolize_keys)
end