Sha256: e34fc683bc3068c5a982f45cbf49e80b3ad7f9fe8cbb4b85dc9e58b5dd993775

Contents?: true

Size: 246 Bytes

Versions: 81

Compression:

Stored size: 246 Bytes

Contents

module ForemanOpenscap
  class PolicyArfReport < ::ActiveRecord::Base
    belongs_to :arf_report, :dependent => :destroy
    belongs_to :policy

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

Version data entries

81 entries across 81 versions & 1 rubygems

Version Path
foreman_openscap-10.0.3 app/models/foreman_openscap/policy_arf_report.rb
foreman_openscap-10.0.2 app/models/foreman_openscap/policy_arf_report.rb
foreman_openscap-10.0.1 app/models/foreman_openscap/policy_arf_report.rb
foreman_openscap-10.0.0 app/models/foreman_openscap/policy_arf_report.rb
foreman_openscap-9.0.4 app/models/foreman_openscap/policy_arf_report.rb
foreman_openscap-9.0.3 app/models/foreman_openscap/policy_arf_report.rb
foreman_openscap-9.0.2 app/models/foreman_openscap/policy_arf_report.rb
foreman_openscap-9.0.1 app/models/foreman_openscap/policy_arf_report.rb
foreman_openscap-9.0.0 app/models/foreman_openscap/policy_arf_report.rb
foreman_openscap-8.0.0 app/models/foreman_openscap/policy_arf_report.rb
foreman_openscap-7.1.1 app/models/foreman_openscap/policy_arf_report.rb
foreman_openscap-7.1.0 app/models/foreman_openscap/policy_arf_report.rb
foreman_openscap-7.0.0 app/models/foreman_openscap/policy_arf_report.rb
foreman_openscap-6.0.0 app/models/foreman_openscap/policy_arf_report.rb
foreman_openscap-5.2.3 app/models/foreman_openscap/policy_arf_report.rb
foreman_openscap-5.2.2 app/models/foreman_openscap/policy_arf_report.rb
foreman_openscap-5.1.1 app/models/foreman_openscap/policy_arf_report.rb
foreman_openscap-5.2.1 app/models/foreman_openscap/policy_arf_report.rb
foreman_openscap-5.2.0 app/models/foreman_openscap/policy_arf_report.rb
foreman_openscap-5.1.0 app/models/foreman_openscap/policy_arf_report.rb