Sha256: 577178103d560ab60bfd707b1a612daa291e2499829ebd906d79e7309c37b154
Contents?: true
Size: 733 Bytes
Versions: 51
Compression:
Stored size: 733 Bytes
Contents
module Katello class AlternateContentSourceProduct < Katello::Model audited # Do not use active record callbacks in this join model. Direct INSERTs and DELETEs are done self.table_name = :katello_alternate_content_source_products belongs_to :alternate_content_source, inverse_of: :alternate_content_source_products, class_name: 'Katello::AlternateContentSource' belongs_to :product, inverse_of: :alternate_content_source_products, class_name: 'Katello::Product' delegate :custom?, :rhui?, to: :alternate_content_source delegate :simplified?, to: :alternate_content_source validates_with Validators::AlternateContentSourceProductsValidator, :attributes => [:product_id], if: :simplified? end end
Version data entries
51 entries across 51 versions & 1 rubygems