Sha256: 2fe58678fc9b899a36a5fe65e99d6eb1776fe732dfa2ea4230e915ab8ac109c7

Contents?: true

Size: 282 Bytes

Versions: 2

Compression:

Stored size: 282 Bytes

Contents

module Spree
  class TaxonGroupMembership < ActiveRecord::Base
    validates :taxon_group, presence: true
    validates :taxon, presence: true
    validates :position, presence: true, numericality: { only_integer: true }

    belongs_to :taxon_group
    belongs_to :taxon
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
solidus_taxon_group-1.0.1 app/models/spree/taxon_group_membership.rb
spree_taxon_group-3.1.0.beta app/models/spree/taxon_group_membership.rb