Sha256: bac999b5672c5dd009e17329844684ee8f77967483d3c6c4d3e8e09b8bfa88a0
Contents?: true
Size: 415 Bytes
Versions: 29
Compression:
Stored size: 415 Bytes
Contents
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 belongs_to :taxon, class_name: "Spree::Taxon", inverse_of: :classifications, touch: true # For #3494 validates_uniqueness_of :taxon_id, scope: :product_id, message: :already_linked end end
Version data entries
29 entries across 29 versions & 2 rubygems