diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-06 12:08:54 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-06 12:08:54 +0300 |
commit | 4903f95b04db58edc1931ec917d2313c916a06b2 (patch) | |
tree | 722e74b8e49f12f8f7aebffc2fa58c9ccc126fb1 /app/presenters | |
parent | 6367f9bd9cca41c932997c94a338556ded4ced8f (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/presenters')
-rw-r--r-- | app/presenters/event_presenter.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/presenters/event_presenter.rb b/app/presenters/event_presenter.rb index 2f2fb1aa3ba..a098db7fbbc 100644 --- a/app/presenters/event_presenter.rb +++ b/app/presenters/event_presenter.rb @@ -9,7 +9,7 @@ class EventPresenter < Gitlab::View::Presenter::Delegated @visible_to_user_cache = ActiveSupport::Cache::MemoryStore.new end - # Caching `visible_to_user?` method in the presenter beause it might be called multiple times. + # Caching `visible_to_user?` method in the presenter because it might be called multiple times. delegator_override :visible_to_user? def visible_to_user?(user = nil) @visible_to_user_cache.fetch(user&.id) { super(user) } |