Module: Katello::Concerns::DashboardHelperExtensions

Defined in:
app/helpers/katello/concerns/dashboard_helper_extensions.rb

Instance Method Summary collapse

Instance Method Details

#host_queryObject



4
5
6
# File 'app/helpers/katello/concerns/dashboard_helper_extensions.rb', line 4

def host_query
  ::Host::Managed.authorized('view_hosts', ::Host::Managed).where(:organization => Organization.current)
end

#total_host_countObject



8
9
10
# File 'app/helpers/katello/concerns/dashboard_helper_extensions.rb', line 8

def total_host_count
  host_query.size
end