Sha256: df853c46ed2ac84cd5ada4b0f828c7e42b2eec5e338156792fbeae56177297f7

Contents?: true

Size: 305 Bytes

Versions: 10

Compression:

Stored size: 305 Bytes

Contents

module Spree
  class Prototype < ActiveRecord::Base
    has_and_belongs_to_many :properties, :join_table => 'spree_properties_prototypes'
    has_and_belongs_to_many :option_types, :join_table => 'spree_option_types_prototypes'

    attr_accessible :name

    validates :name, :presence => true
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
spree_core-1.1.6 app/models/spree/prototype.rb
spree_core-1.1.5 app/models/spree/prototype.rb
spree_core-1.1.4 app/models/spree/prototype.rb
spree_core-1.1.3 app/models/spree/prototype.rb
spree_core-1.1.2 app/models/spree/prototype.rb
spree_core-1.1.2.rc1 app/models/spree/prototype.rb
spree_core-1.1.1 app/models/spree/prototype.rb
spree_core-1.1.0 app/models/spree/prototype.rb
spree_core-1.1.0.rc2 app/models/spree/prototype.rb
spree_core-1.1.0.rc1 app/models/spree/prototype.rb