summaryrefslogtreecommitdiff
path: root/app/models/concerns/awardable.rb
diff options
context:
space:
mode:
authorYorick Peterse <yorickpeterse@gmail.com>2018-08-16 14:46:40 +0200
committerYorick Peterse <yorickpeterse@gmail.com>2018-08-16 17:29:37 +0200
commit9606dbbb033567de9831a8cdea0e56236e7d2eb2 (patch)
treea83e2103a7f3ab31836375f1adbef605f050f0f8 /app/models/concerns/awardable.rb
parent96ce2da74ee36e88f20cbd7ceaff2ab49f0bb223 (diff)
downloadgitlab-ce-9606dbbb033567de9831a8cdea0e56236e7d2eb2.tar.gz
Whitelist existing destroy_all offensesblacklist-destroy-all
This whitelists all existing places where we use "destroy_all".
Diffstat (limited to 'app/models/concerns/awardable.rb')
-rw-r--r--app/models/concerns/awardable.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/concerns/awardable.rb b/app/models/concerns/awardable.rb
index dd07f389fa5..49981db0d80 100644
--- a/app/models/concerns/awardable.rb
+++ b/app/models/concerns/awardable.rb
@@ -101,7 +101,7 @@ module Awardable
end
def remove_award_emoji(name, current_user)
- award_emoji.where(name: name, user: current_user).destroy_all
+ award_emoji.where(name: name, user: current_user).destroy_all # rubocop: disable DestroyAll
end
def toggle_award_emoji(emoji_name, current_user)