Skip to content

Commit

Permalink
Fixes #37111 - use preloaded count
Browse files Browse the repository at this point in the history
  • Loading branch information
sbernhard committed Jan 26, 2024
1 parent 3dcae86 commit d91c48c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/katello/content_view.rb
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def generated_for_library?
end

def content_host_count
hosts.count
hosts.size
end

def component_ids
Expand Down Expand Up @@ -735,7 +735,7 @@ def self.humanize_class_name(_name = nil)
end

def version_count
content_view_versions.count
content_view_versions.size
end

def on_demand_repositories
Expand Down

0 comments on commit d91c48c

Please sign in to comment.