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

Version Path
katello-4.3.1 app/models/katello/hostgroup/content_facet.rb
katello-4.2.2 app/models/katello/hostgroup/content_facet.rb
katello-4.3.0 app/models/katello/hostgroup/content_facet.rb
katello-4.3.0.rc4 app/models/katello/hostgroup/content_facet.rb
katello-4.3.0.rc3 app/models/katello/hostgroup/content_facet.rb
katello-4.3.0.rc2.1 app/models/katello/hostgroup/content_facet.rb
katello-4.3.0.rc2 app/models/katello/hostgroup/content_facet.rb
katello-4.3.0.rc1 app/models/katello/hostgroup/content_facet.rb
katello-4.2.1 app/models/katello/hostgroup/content_facet.rb
katello-4.2.0.1 app/models/katello/hostgroup/content_facet.rb
katello-4.1.4 app/models/katello/hostgroup/content_facet.rb
katello-4.0.3 app/models/katello/hostgroup/content_facet.rb
katello-4.2.0.1.rc3 app/models/katello/hostgroup/content_facet.rb
katello-3.18.5 app/models/katello/hostgroup/content_facet.rb
katello-4.2.0.1.rc2 app/models/katello/hostgroup/content_facet.rb
katello-4.2.0.rc2 app/models/katello/hostgroup/content_facet.rb
katello-4.1.3 app/models/katello/hostgroup/content_facet.rb
katello-4.2.0.rc1 app/models/katello/hostgroup/content_facet.rb
katello-4.0.2.1 app/models/katello/hostgroup/content_facet.rb
katello-4.1.2.1 app/models/katello/hostgroup/content_facet.rb