Class: Shoppy::CartItem
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Shoppy::CartItem
- Defined in:
- app/models/shoppy/cart_item.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#customer ⇒ Object
Relationships.
-
#quantity ⇒ Object
Validators.
Instance Method Details
#customer ⇒ Object
Relationships
4 |
# File 'app/models/shoppy/cart_item.rb', line 4 belongs_to :customer |
#quantity ⇒ Object
Validators
8 |
# File 'app/models/shoppy/cart_item.rb', line 8 validates :quantity, presence: true |