Sha256: d4268738cae775c37a1c196307b1ec7fd2f9c3f9946b6e6784d12789950b46a9
Contents?: true
Size: 528 Bytes
Versions: 96
Compression:
Stored size: 528 Bytes
Contents
# frozen_string_literal: true module Spree class Classification < Spree::Base self.table_name = 'spree_products_taxons' acts_as_list scope: :taxon belongs_to :product, class_name: "Spree::Product", inverse_of: :classifications, touch: true, optional: true belongs_to :taxon, class_name: "Spree::Taxon", inverse_of: :classifications, touch: true, optional: true # For https://github.com/spree/spree/issues/3494 validates_uniqueness_of :taxon_id, scope: :product_id, message: :already_linked end end
Version data entries
96 entries across 96 versions & 1 rubygems