Method: Spree::Order::CurrencyUpdater#price_from_line_item

Defined in:
app/models/spree/order/currency_updater.rb

#price_from_line_item(line_item) ⇒ Object

Returns the price object from given item



23
24
25
# File 'app/models/spree/order/currency_updater.rb', line 23

def price_from_line_item(line_item)
  line_item.variant.prices.where(currency: currency).first
end