Sha256: f91e34b4ff39536b23842f876e6696b347f594c1ff27e27a420ff564b5a77332
Contents?: true
Size: 261 Bytes
Versions: 1
Compression:
Stored size: 261 Bytes
Contents
module ShoppingCart class OrderItem < ApplicationRecord belongs_to :productable, polymorphic: true belongs_to :order, counter_cache: true validates :quantity, presence: true validates :quantity, numericality: { only_integer: true } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shopping_cart-0.1.0 | app/models/shopping_cart/order_item.rb |