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-6.0.45 app/models/concerns/rh_cloud_host.rb
foreman_rh_cloud-5.0.46 app/models/concerns/rh_cloud_host.rb
foreman_rh_cloud-5.0.45 app/models/concerns/rh_cloud_host.rb
foreman_rh_cloud-5.0.44 app/models/concerns/rh_cloud_host.rb
foreman_rh_cloud-6.0.44 app/models/concerns/rh_cloud_host.rb
foreman_rh_cloud-5.0.43 app/models/concerns/rh_cloud_host.rb
foreman_rh_cloud-4.0.36 app/models/concerns/rh_cloud_host.rb
foreman_rh_cloud-3.0.33 app/models/concerns/rh_cloud_host.rb
foreman_rh_cloud-6.0.42.2 app/models/concerns/rh_cloud_host.rb
foreman_rh_cloud-6.0.42.1 app/models/concerns/rh_cloud_host.rb
foreman_rh_cloud-6.0.43 app/models/concerns/rh_cloud_host.rb
foreman_rh_cloud-5.0.42 app/models/concerns/rh_cloud_host.rb
foreman_rh_cloud-6.0.42 app/models/concerns/rh_cloud_host.rb
foreman_rh_cloud-5.0.41 app/models/concerns/rh_cloud_host.rb
foreman_rh_cloud-5.0.39 app/models/concerns/rh_cloud_host.rb
foreman_rh_cloud-5.0.38 app/models/concerns/rh_cloud_host.rb
foreman_rh_cloud-4.0.35 app/models/concerns/rh_cloud_host.rb
foreman_rh_cloud-5.0.37 app/models/concerns/rh_cloud_host.rb
foreman_rh_cloud-5.0.36 app/models/concerns/rh_cloud_host.rb
foreman_rh_cloud-5.0.35 app/models/concerns/rh_cloud_host.rb