Class: Kms::Cart
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Kms::Cart
- Includes:
- Liquor::Dropable
- Defined in:
- app/models/kms/cart.rb
Instance Method Summary collapse
Instance Method Details
#total ⇒ Object
10 11 12 |
# File 'app/models/kms/cart.rb', line 10 def total line_items.inject(0) {|sum, item| sum + item.total } end |