Sha256: 56800c4acf9b2c91dd6c6bfe99497139661bda569586d0cc74a75a2794880733
Contents?: true
Size: 1.01 KB
Versions: 56
Compression:
Stored size: 1.01 KB
Contents
module Katello module Hostgroup 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 :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 validates_with Katello::Validators::ContentViewEnvironmentValidator validates_with Katello::Validators::HostgroupKickstartRepositoryValidator validates_with ::AssociationExistsValidator, attributes: [:content_source] end end end
Version data entries
56 entries across 56 versions & 1 rubygems