diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-12-06 15:08:19 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-12-06 15:08:19 +0300 |
commit | eaf41d710dd1ee39125f9dce75812f0b6247adba (patch) | |
tree | 031a83beaea241474d5f2bdd5670961309cff000 /app/models/award_emoji.rb | |
parent | 5bc6fcec0edaa4032afacce1aa5e5289e9ae07ac (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/award_emoji.rb')
-rw-r--r-- | app/models/award_emoji.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/award_emoji.rb b/app/models/award_emoji.rb index e9530a80d9f..9d758cf75d8 100644 --- a/app/models/award_emoji.rb +++ b/app/models/award_emoji.rb @@ -23,8 +23,8 @@ class AwardEmoji < ApplicationRecord scope :downvotes, -> { named(DOWNVOTE_NAME) } scope :upvotes, -> { named(UPVOTE_NAME) } - scope :named, -> (names) { where(name: names) } - scope :awarded_by, -> (users) { where(user: users) } + scope :named, ->(names) { where(name: names) } + scope :awarded_by, ->(users) { where(user: users) } after_save :expire_cache after_destroy :expire_cache |