Class: Shoppy::Order

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

Direct Known Subclasses

Order

Instance Method Summary collapse

Instance Method Details

#order_linesObject

Relationships



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

has_many    :order_lines, dependent: :destroy

#total_priceObject

Validators



11
# File 'app/models/shoppy/order.rb', line 11

validates :total_price, presence: true