Sha256: eba655521aaf5a8303581e1cc26759e1f560725eb3536b496495a65b6398999a
Contents?: true
Size: 428 Bytes
Versions: 15
Compression:
Stored size: 428 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, touch: true 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
15 entries across 15 versions & 1 rubygems