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-3.2.2 app/models/spree/prototype.rb
spree_core-3.3.0.rc2 app/models/spree/prototype.rb
spree_core-3.1.6 app/models/spree/prototype.rb
spree_core-3.3.0.rc1 app/models/spree/prototype.rb
spree_core-3.1.5 app/models/spree/prototype.rb
spree_core-3.2.1 app/models/spree/prototype.rb
spree_core-3.2.0 app/models/spree/prototype.rb
spree_core-3.1.4 app/models/spree/prototype.rb
spree_core-3.2.0.rc3 app/models/spree/prototype.rb
spree_core-3.2.0.rc2 app/models/spree/prototype.rb
spree_core-3.2.0.rc1 app/models/spree/prototype.rb
spree_core-3.1.3 app/models/spree/prototype.rb
spree_core-3.1.2 app/models/spree/prototype.rb
spree_core-3.1.1 app/models/spree/prototype.rb
spree_core-3.1.0 app/models/spree/prototype.rb
spree_core-3.1.0.rc4 app/models/spree/prototype.rb
spree_core-3.1.0.rc3 app/models/spree/prototype.rb
spree_core-3.1.0.rc2 app/models/spree/prototype.rb
spree_core-3.1.0.rc1 app/models/spree/prototype.rb