Sha256: 289eee7e2235a71414675cb3f3eda0c4304930a77192154b13c6abf0e341d4d8

Contents?: true

Size: 286 Bytes

Versions: 6

Compression:

Stored size: 286 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
    )
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
foreman_rh_cloud-0.9.12 app/models/concerns/rh_cloud_host.rb
foreman_rh_cloud-1.0.12 app/models/concerns/rh_cloud_host.rb
foreman_rh_cloud-2.0.12 app/models/concerns/rh_cloud_host.rb
foreman_rh_cloud-0.9.11 app/models/concerns/rh_cloud_host.rb
foreman_rh_cloud-1.0.11 app/models/concerns/rh_cloud_host.rb
foreman_rh_cloud-2.0.11 app/models/concerns/rh_cloud_host.rb