Sha256: ff15835c7b1db786ceebcc9f62b3d0ce68e651a6b68796ccd070f40dbca9bc91
Contents?: true
Size: 348 Bytes
Versions: 2
Compression:
Stored size: 348 Bytes
Contents
module Spree class TaxonGroup < ActiveRecord::Base validates :name, presence: true validates :key, presence: true has_many :taxon_group_memberships, class_name: 'Spree::TaxonGroupMembership', dependent: :destroy has_many :taxons, -> { order 'spree_taxon_group_memberships.position' }, through: :taxon_group_memberships 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.rb |
spree_taxon_group-3.1.0.beta | app/models/spree/taxon_group.rb |