Class: Kms::Cart

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
Liquor::Dropable
Defined in:
app/models/kms/cart.rb

Instance Method Summary collapse

Instance Method Details

#totalObject



10
11
12
# File 'app/models/kms/cart.rb', line 10

def total
  line_items.inject(0) {|sum, item| sum + item.total }
end