Sha256: e21e036621b58157d45afac7f565c233263b1e03dd124e23bf28832ed7900320

Contents?: true

Size: 394 Bytes

Versions: 7

Compression:

Stored size: 394 Bytes

Contents

module Spree
  class Classification < Spree::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

7 entries across 7 versions & 1 rubygems

Version Path
spree_core-2.4.0.rc2 app/models/spree/classification.rb
spree_core-2.4.0.rc1 app/models/spree/classification.rb
spree_core-2.3.4 app/models/spree/classification.rb
spree_core-2.3.3 app/models/spree/classification.rb
spree_core-2.3.2 app/models/spree/classification.rb
spree_core-2.3.1 app/models/spree/classification.rb
spree_core-2.3.0 app/models/spree/classification.rb