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

Version Path
spree_core-2.2.14 app/models/spree/classification.rb
spree_core-2.2.13 app/models/spree/classification.rb
spree_core-2.2.12 app/models/spree/classification.rb
spree_core-2.2.11 app/models/spree/classification.rb
spree_core-2.2.10 app/models/spree/classification.rb
spree_core-2.2.9 app/models/spree/classification.rb
spree_core-2.2.8 app/models/spree/classification.rb
spree_core-2.2.7 app/models/spree/classification.rb
spree_core-2.2.6 app/models/spree/classification.rb
spree_core-2.2.5 app/models/spree/classification.rb
spree_core-2.2.4 app/models/spree/classification.rb
spree_core-2.2.3 app/models/spree/classification.rb
spree_core-2.2.2 app/models/spree/classification.rb
spree_core-2.2.1 app/models/spree/classification.rb
spree_core-2.2.0 app/models/spree/classification.rb