Skip to content

Commit

Permalink
Fixes #37111 - use preloaded count (Katello#10866)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbernhard committed Feb 6, 2024
1 parent 383e45a commit 14b63bd
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 14b63bd

Please sign in to comment.