Sha256: 43b05397d74944aa22073411edbb3438fd54751610bbdc6137daaece4715f0ca

Contents?: true

Size: 415 Bytes

Versions: 6

Compression:

Stored size: 415 Bytes

Contents

require 'scaptimony/asset'

module ForemanOpenscap
  module HostgroupExtensions
    extend ActiveSupport::Concern

    included do
      has_one :asset, :as => :assetable, :class_name => "::Scaptimony::Asset"
      has_many :asset_policies, :through => :asset, :class_name => "::Scaptimony::AssetPolicy"
      has_many :policies, :through => :asset_policies, :class_name => "::Scaptimony::Policy"
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
foreman_openscap-0.4.3 app/models/concerns/foreman_openscap/hostgroup_extensions.rb
foreman_openscap-0.4.2 app/models/concerns/foreman_openscap/hostgroup_extensions.rb
foreman_openscap-0.4.1 app/models/concerns/foreman_openscap/hostgroup_extensions.rb
foreman_openscap-0.3.4 app/models/concerns/foreman_openscap/hostgroup_extensions.rb
foreman_openscap-0.4.0 app/models/concerns/foreman_openscap/hostgroup_extensions.rb
foreman_openscap-0.3.3 app/models/concerns/foreman_openscap/hostgroup_extensions.rb