Sha256: 6920ac2f8c484c9b891b74cdf28709ea65fc8d655917f19834eb40e24a7429d3

Contents?: true

Size: 573 Bytes

Versions: 139

Compression:

Stored size: 573 Bytes

Contents

module Spree
  class Prototype < Spree::Base
    has_many :property_prototypes, class_name: 'Spree::PropertyPrototype'
    has_many :properties, through: :property_prototypes, class_name: 'Spree::Property'

    has_many :option_type_prototypes, class_name: 'Spree::OptionTypePrototype'
    has_many :option_types, through: :option_type_prototypes, class_name: 'Spree::OptionType'

    has_many :prototype_taxons, class_name: 'Spree::PrototypeTaxon'
    has_many :taxons, through: :prototype_taxons, class_name: 'Spree::Taxon'

    validates :name, presence: true
  end
end

Version data entries

139 entries across 139 versions & 1 rubygems

Version Path
spree_core-4.0.9 app/models/spree/prototype.rb
spree_core-4.1.15 app/models/spree/prototype.rb
spree_core-4.2.7 app/models/spree/prototype.rb
spree_core-4.3.3 app/models/spree/prototype.rb
spree_core-4.2.6 app/models/spree/prototype.rb
spree_core-4.3.2 app/models/spree/prototype.rb
spree_core-4.3.1 app/models/spree/prototype.rb
spree_core-4.3.0 app/models/spree/prototype.rb
spree_core-4.3.0.rc3 app/models/spree/prototype.rb
spree_core-4.3.0.rc2 app/models/spree/prototype.rb
spree_core-4.3.0.rc1 app/models/spree/prototype.rb
spree_core-4.2.5 app/models/spree/prototype.rb
spree_core-4.1.14 app/models/spree/prototype.rb
spree_core-4.0.8 app/models/spree/prototype.rb
spree_core-4.2.4 app/models/spree/prototype.rb
spree_core-3.7.14.1 app/models/spree/prototype.rb
spree_core-4.2.3.1 app/models/spree/prototype.rb
spree_core-4.1.13.1 app/models/spree/prototype.rb
spree_core-4.0.7.1 app/models/spree/prototype.rb
spree_core-4.2.3 app/models/spree/prototype.rb