diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-11-08 09:09:59 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-11-08 09:09:59 +0300 |
commit | 93ea45e25a0cf3dfebd11b484e6967da6d95d4ab (patch) | |
tree | 1db6aa045ff0292cd998068afaed47068081d9f4 /app/models/merge_request_reviewer.rb | |
parent | e2deaee92032eb1162182bc9e0d553d0153c7d0e (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/merge_request_reviewer.rb')
-rw-r--r-- | app/models/merge_request_reviewer.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/merge_request_reviewer.rb b/app/models/merge_request_reviewer.rb index 3a2c8603956..4abf0fa09f0 100644 --- a/app/models/merge_request_reviewer.rb +++ b/app/models/merge_request_reviewer.rb @@ -5,4 +5,8 @@ class MergeRequestReviewer < ApplicationRecord belongs_to :merge_request belongs_to :reviewer, class_name: 'User', foreign_key: :user_id, inverse_of: :merge_request_reviewers + + def cache_key + [model_name.cache_key, id, state, reviewer.cache_key] + end end |