Class: Shoppy::Shipment
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Shoppy::Shipment
- Defined in:
- app/models/shoppy/shipment.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#order_lines ⇒ Object
Relationships.
-
#status ⇒ Object
Validation.
Instance Method Details
#order_lines ⇒ Object
Relationships
4 |
# File 'app/models/shoppy/shipment.rb', line 4 has_many :order_lines, dependent: :nullify |
#status ⇒ Object
Validation
9 |
# File 'app/models/shoppy/shipment.rb', line 9 validates :status, inclusion: {:in => ["Processing", "Shipped", "Cancelled", "Delivered"], message: "Must be 'Processing', 'Shipped', 'Cancelled' or 'Delivered'"} |