Sha256: 29263bd3982f0272d9cade3dc07fd588804ce871580e4e4b22b9383d3721878b
Contents?: true
Size: 465 Bytes
Versions: 6
Compression:
Stored size: 465 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 https://github.com/spree/spree/issues/3494 validates_uniqueness_of :taxon_id, scope: :product_id, message: :already_linked end end
Version data entries
6 entries across 6 versions & 1 rubygems