app/models/katello/hostgroup/content_facet.rb in katello-4.3.1 vs app/models/katello/hostgroup/content_facet.rb in katello-4.4.0.rc1

- old
+ new

@@ -3,13 +3,13 @@ class ContentFacet < Katello::Model audited :associated_with => :lifecycle_environment self.table_name = 'katello_hostgroup_content_facets' include Facets::HostgroupFacet - belongs_to :kickstart_repository, :class_name => "::Katello::Repository", :foreign_key => :kickstart_repository_id, :inverse_of => :kickstart_hostgroup_content_facets + belongs_to :kickstart_repository, :class_name => "::Katello::Repository", :inverse_of => :kickstart_hostgroup_content_facets belongs_to :content_view, :inverse_of => :hostgroup_content_facets, :class_name => "Katello::ContentView" belongs_to :lifecycle_environment, :inverse_of => :hostgroup_content_facets, :class_name => "Katello::KTEnvironment" - belongs_to :content_source, :class_name => "::SmartProxy", :foreign_key => :content_source_id, :inverse_of => :hostgroup_content_facets + belongs_to :content_source, :class_name => "::SmartProxy", :inverse_of => :hostgroup_content_facets validates_with Katello::Validators::ContentViewEnvironmentValidator validates_with Katello::Validators::HostgroupKickstartRepositoryValidator validates_with ::AssociationExistsValidator, attributes: [:content_source] end