Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorick Peterse <yorickpeterse@gmail.com>2018-08-16 15:46:40 +0300
committerYorick Peterse <yorickpeterse@gmail.com>2018-08-16 18:29:37 +0300
commit9606dbbb033567de9831a8cdea0e56236e7d2eb2 (patch)
treea83e2103a7f3ab31836375f1adbef605f050f0f8 /app/services/projects/move_notification_settings_service.rb
parent96ce2da74ee36e88f20cbd7ceaff2ab49f0bb223 (diff)
Whitelist existing destroy_all offenses
This whitelists all existing places where we use "destroy_all".
Diffstat (limited to 'app/services/projects/move_notification_settings_service.rb')
-rw-r--r--app/services/projects/move_notification_settings_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/projects/move_notification_settings_service.rb b/app/services/projects/move_notification_settings_service.rb
index 746605d56f1..109a00dd6d9 100644
--- a/app/services/projects/move_notification_settings_service.rb
+++ b/app/services/projects/move_notification_settings_service.rb
@@ -22,7 +22,7 @@ module Projects
# Remove remaining notification settings from source_project
def remove_remaining_notification_settings
- source_project.notification_settings.destroy_all
+ source_project.notification_settings.destroy_all # rubocop: disable DestroyAll
end
# Get users of current notification_settings