Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #24696 - use string for :class_name attributes #352

Merged
merged 1 commit into from
Aug 24, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/models/foreman_openscap/policy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class Policy < ApplicationRecord
belongs_to :scap_content
belongs_to :scap_content_profile
belongs_to :tailoring_file
belongs_to :tailoring_file_profile, :class_name => ForemanOpenscap::ScapContentProfile
belongs_to :tailoring_file_profile, :class_name => 'ForemanOpenscap::ScapContentProfile'
has_many :policy_arf_reports
has_many :arf_reports, :through => :policy_arf_reports, :dependent => :destroy
has_many :asset_policies
Expand Down
2 changes: 1 addition & 1 deletion app/models/foreman_openscap/scap_content_profile.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ class ScapContentProfile < ApplicationRecord
belongs_to :scap_content
has_many :policies
belongs_to :tailoring_file
has_many :tailoring_file_policies, :class_name => ForemanOpenscap::Policy
has_many :tailoring_file_policies, :class_name => 'ForemanOpenscap::Policy'
end
end