Sha256: 87f13686fd93a7bf3b88d9d74a296355706afc9cc4d07c235bc295c6127f6a76

Contents?: true

Size: 292 Bytes

Versions: 15

Compression:

Stored size: 292 Bytes

Contents

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

      def total_host_count
        host_query.size
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
katello-4.14.2 app/helpers/katello/concerns/dashboard_helper_extensions.rb
katello-4.15.0 app/helpers/katello/concerns/dashboard_helper_extensions.rb
katello-4.15.0.rc2 app/helpers/katello/concerns/dashboard_helper_extensions.rb
katello-4.15.0.rc1 app/helpers/katello/concerns/dashboard_helper_extensions.rb
katello-4.14.1 app/helpers/katello/concerns/dashboard_helper_extensions.rb
katello-4.14.0 app/helpers/katello/concerns/dashboard_helper_extensions.rb
katello-4.14.0.rc3 app/helpers/katello/concerns/dashboard_helper_extensions.rb
katello-4.14.0.rc2 app/helpers/katello/concerns/dashboard_helper_extensions.rb
katello-4.14.0.rc1.1 app/helpers/katello/concerns/dashboard_helper_extensions.rb
katello-4.14.0.rc1 app/helpers/katello/concerns/dashboard_helper_extensions.rb
katello-4.13.1 app/helpers/katello/concerns/dashboard_helper_extensions.rb
katello-4.13.0 app/helpers/katello/concerns/dashboard_helper_extensions.rb
katello-4.12.1 app/helpers/katello/concerns/dashboard_helper_extensions.rb
katello-4.13.0.rc1 app/helpers/katello/concerns/dashboard_helper_extensions.rb
katello-4.12.0 app/helpers/katello/concerns/dashboard_helper_extensions.rb