Sha256: 28aa22a521271a6f20f4bc94e9b538f53ffea28501ddf1b0f4e56ce21c5a59d0

Contents?: true

Size: 176 Bytes

Versions: 2

Compression:

Stored size: 176 Bytes

Contents

module SimpleCart
  class OrderItem < ActiveRecord::Base
    belongs_to :itemable, polymorphic: true
    belongs_to :order

    validates :price, :qty, presence: true
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
simple_cart-0.0.5 app/models/simple_cart/order_item.rb
simple_cart-0.0.4 app/models/simple_cart/order_item.rb