Class: Shoppy::CartItem

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/shoppy/cart_item.rb

Direct Known Subclasses

CartItem

Instance Method Summary collapse

Instance Method Details

#customerObject

Relationships



4
# File 'app/models/shoppy/cart_item.rb', line 4

belongs_to :customer

#quantityObject

Validators



8
# File 'app/models/shoppy/cart_item.rb', line 8

validates :quantity, presence: true