Sha256: 9f6c40cdbcedef797ba9f5d06867c9e367bf212d4356095f53a6ece5d47b887f

Contents?: true

Size: 295 Bytes

Versions: 133

Compression:

Stored size: 295 Bytes

Contents

module Spree
  class PropertyPrototype < Spree::Base
    belongs_to :prototype, class_name: 'Spree::Prototype'
    belongs_to :property, class_name: 'Spree::Property'

    validates :prototype, :property, presence: true
    validates :prototype_id, uniqueness: { scope: :property_id }
  end
end

Version data entries

133 entries across 133 versions & 1 rubygems

Version Path
spree_core-4.10.1 app/models/spree/property_prototype.rb
spree_core-4.10.0 app/models/spree/property_prototype.rb
spree_core-4.9.0 app/models/spree/property_prototype.rb
spree_core-4.8.3 app/models/spree/property_prototype.rb
spree_core-4.8.2 app/models/spree/property_prototype.rb
spree_core-4.7.3 app/models/spree/property_prototype.rb
spree_core-4.6.6 app/models/spree/property_prototype.rb
spree_core-4.5.5 app/models/spree/property_prototype.rb
spree_core-4.0.9 app/models/spree/property_prototype.rb
spree_core-4.1.15 app/models/spree/property_prototype.rb
spree_core-4.2.7 app/models/spree/property_prototype.rb
spree_core-4.3.3 app/models/spree/property_prototype.rb
spree_core-4.4.1 app/models/spree/property_prototype.rb
spree_core-4.5.4 app/models/spree/property_prototype.rb
spree_core-4.6.5 app/models/spree/property_prototype.rb
spree_core-4.7.2 app/models/spree/property_prototype.rb
spree_core-4.7.1 app/models/spree/property_prototype.rb
spree_core-4.6.4 app/models/spree/property_prototype.rb
spree_core-4.7.0 app/models/spree/property_prototype.rb
spree_core-4.6.3 app/models/spree/property_prototype.rb