Skip to content

Commit

Permalink
Fixes #37111 - use preloaded count (Katello#10866)
Browse files Browse the repository at this point in the history
(cherry picked from commit 14b63bd)
  • Loading branch information
sbernhard committed Feb 27, 2024
1 parent ccd5c10 commit 086d0b6
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 @@ -189,7 +189,7 @@ def generated_for_library?
end

def content_host_count
hosts.count
hosts.size
end

def component_ids
Expand Down Expand Up @@ -740,7 +740,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 086d0b6

Please sign in to comment.