Class: Shoppy::Order
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Shoppy::Order
- Defined in:
- app/models/shoppy/order.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#order_lines ⇒ Object
Relationships.
-
#total_price ⇒ Object
Validators.
Instance Method Details
#order_lines ⇒ Object
Relationships
4 |
# File 'app/models/shoppy/order.rb', line 4 has_many :order_lines, dependent: :destroy |
#total_price ⇒ Object
Validators
11 |
# File 'app/models/shoppy/order.rb', line 11 validates :total_price, presence: true |