Sha256: fa0c6cea0b91dd78e3c03ec6eef8b7702b93b41761b803b0ae2d7897f2463a3a
Contents?: true
Size: 401 Bytes
Versions: 15
Compression:
Stored size: 401 Bytes
Contents
module Spree class Classification < ActiveRecord::Base self.table_name = 'spree_products_taxons' acts_as_list belongs_to :product, class_name: "Spree::Product", inverse_of: :classifications belongs_to :taxon, class_name: "Spree::Taxon", inverse_of: :classifications # 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