diff options
author | dixpac <dino.onex@gmail.com> | 2016-08-13 15:45:31 +0300 |
---|---|---|
committer | dixpac <dino.onex@gmail.com> | 2017-02-08 11:16:43 +0300 |
commit | 0dacf3c169a85e6f3a1c70f3f5e377d47f770d19 (patch) | |
tree | 9a7ceb14b6a7aa96636a4024df06fa37c782a3ee /app/workers | |
parent | a965edb89d3c260394ffc987832a469e7740415d (diff) |
Fix inconsistent naming for services that delete things
* Changed name of delete_user_service and worker to destroy
* Move and change delete_group_service to Groups::DestroyService
* Rename Notes::DeleteService to Notes::DestroyService
Diffstat (limited to 'app/workers')
-rw-r--r-- | app/workers/delete_user_worker.rb | 2 | ||||
-rw-r--r-- | app/workers/group_destroy_worker.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/workers/delete_user_worker.rb b/app/workers/delete_user_worker.rb index 3194c389b3d..5483bbb210b 100644 --- a/app/workers/delete_user_worker.rb +++ b/app/workers/delete_user_worker.rb @@ -6,6 +6,6 @@ class DeleteUserWorker delete_user = User.find(delete_user_id) current_user = User.find(current_user_id) - DeleteUserService.new(current_user).execute(delete_user, options.symbolize_keys) + Users::DestroyService.new(current_user).execute(delete_user, options.symbolize_keys) end end diff --git a/app/workers/group_destroy_worker.rb b/app/workers/group_destroy_worker.rb index a49a5fd0855..07e82767b06 100644 --- a/app/workers/group_destroy_worker.rb +++ b/app/workers/group_destroy_worker.rb @@ -11,6 +11,6 @@ class GroupDestroyWorker user = User.find(user_id) - DestroyGroupService.new(group, user).execute + Groups::DestroyService.new(group, user).execute end end |