Sha256: 77161be6484e8ae4913196759f58464b70b84b1836498b68e26a2b804f3be979

Contents?: true

Size: 222 Bytes

Versions: 25

Compression:

Stored size: 222 Bytes

Contents

module ForemanOpenscap
  class PolicyArfReport < ::ActiveRecord::Base
    belongs_to :arf_report
    belongs_to :policy

    scope :of_policy, lambda { |policy_id| joins(:policy).where(:policy_id => policy_id) }
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
foreman_openscap-0.7.8 app/models/foreman_openscap/policy_arf_report.rb
foreman_openscap-0.7.7 app/models/foreman_openscap/policy_arf_report.rb
foreman_openscap-0.8.2 app/models/foreman_openscap/policy_arf_report.rb
foreman_openscap-0.7.6 app/models/foreman_openscap/policy_arf_report.rb
foreman_openscap-0.8.1 app/models/foreman_openscap/policy_arf_report.rb
foreman_openscap-0.7.5 app/models/foreman_openscap/policy_arf_report.rb
foreman_openscap-0.8.0 app/models/foreman_openscap/policy_arf_report.rb
foreman_openscap-0.7.4 app/models/foreman_openscap/policy_arf_report.rb
foreman_openscap-0.7.3 app/models/foreman_openscap/policy_arf_report.rb
foreman_openscap-0.7.2 app/models/foreman_openscap/policy_arf_report.rb
foreman_openscap-0.7.1 app/models/foreman_openscap/policy_arf_report.rb
foreman_openscap-0.6.7 app/models/foreman_openscap/policy_arf_report.rb
foreman_openscap-0.7.0 app/models/foreman_openscap/policy_arf_report.rb
foreman_openscap-0.6.6 app/models/foreman_openscap/policy_arf_report.rb
foreman_openscap-0.6.5 app/models/foreman_openscap/policy_arf_report.rb
foreman_openscap-0.6.4 app/models/foreman_openscap/policy_arf_report.rb
foreman_openscap-0.6.3 app/models/foreman_openscap/policy_arf_report.rb
foreman_openscap-0.6.2 app/models/foreman_openscap/policy_arf_report.rb
foreman_openscap-0.6.1 app/models/foreman_openscap/policy_arf_report.rb
foreman_openscap-0.6.0 app/models/foreman_openscap/policy_arf_report.rb