diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-10-06 09:06:24 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-10-06 09:06:24 +0300 |
commit | b83314141e6420ca252099665beb520fa2f7da7c (patch) | |
tree | e077101a1abdbff51a300c89097d7bea81d72c27 /app/models/repository.rb | |
parent | 7b871b34980ed6b21e080b4937860aaf898b7fa4 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/repository.rb')
-rw-r--r-- | app/models/repository.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/repository.rb b/app/models/repository.rb index 6c6023a8709..b9f57169ea5 100644 --- a/app/models/repository.rb +++ b/app/models/repository.rb @@ -568,7 +568,7 @@ class Repository delegate :branch_count, :tag_count, :has_visible_content?, to: :raw_repository cache_method :branch_count, fallback: 0 cache_method :tag_count, fallback: 0 - cache_method :has_visible_content?, fallback: false + cache_method_asymmetrically :has_visible_content? def avatar # n+1: https://gitlab.com/gitlab-org/gitlab-foss/issues/38327 |