Skip to content
Snippets Groups Projects
Commit 7b0e7973 authored by Grzegorz Bizon's avatar Grzegorz Bizon
Browse files

Memoize result of checking container images on project

parent 7c0d8c8c
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -486,7 +486,7 @@ class Project < ActiveRecord::Base
end
 
def has_container_registry_tags?
container_repositories.to_a.any?(&:has_tags?) ||
@images ||= container_repositories.to_a.any?(&:has_tags?) ||
has_root_container_repository_tags?
end
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment