Sha256: bda46239dee0b78adaae5612a75535b4a168a979578390c31472071399f8e48e

Contents?: true

Size: 476 Bytes

Versions: 77

Compression:

Stored size: 476 Bytes

Contents

module RhCloudHost
  extend ActiveSupport::Concern

  included do
    has_many(
      :inventory_upload_facts,
      -> { where(fact_name_id: ForemanInventoryUpload::Generators::Queries.fact_names.values) },
      class_name: 'FactValue',
      foreign_key: :host_id
    )

    has_many :insights_hits, through: :insights, source: :hits
    scoped_search :relation => :insights, :on => :hits_count, :only_explicit => true, :rename => :insights_recommendations_count
  end
end

Version data entries

77 entries across 77 versions & 1 rubygems

Version Path
foreman_rh_cloud-3.0.17 app/models/concerns/rh_cloud_host.rb
foreman_rh_cloud-2.0.16 app/models/concerns/rh_cloud_host.rb
foreman_rh_cloud-1.0.16 app/models/concerns/rh_cloud_host.rb
foreman_rh_cloud-3.0.16 app/models/concerns/rh_cloud_host.rb
foreman_rh_cloud-1.0.15 app/models/concerns/rh_cloud_host.rb
foreman_rh_cloud-2.0.15 app/models/concerns/rh_cloud_host.rb
foreman_rh_cloud-3.0.15 app/models/concerns/rh_cloud_host.rb
foreman_rh_cloud-3.0.14 app/models/concerns/rh_cloud_host.rb
foreman_rh_cloud-2.0.14 app/models/concerns/rh_cloud_host.rb
foreman_rh_cloud-1.0.14 app/models/concerns/rh_cloud_host.rb
foreman_rh_cloud-0.9.14 app/models/concerns/rh_cloud_host.rb
foreman_rh_cloud-0.9.13.1 app/models/concerns/rh_cloud_host.rb
foreman_rh_cloud-1.0.13.1 app/models/concerns/rh_cloud_host.rb
foreman_rh_cloud-2.0.13.1 app/models/concerns/rh_cloud_host.rb
foreman_rh_cloud-0.9.13 app/models/concerns/rh_cloud_host.rb
foreman_rh_cloud-1.0.13 app/models/concerns/rh_cloud_host.rb
foreman_rh_cloud-2.0.13 app/models/concerns/rh_cloud_host.rb