Method: Spree::Order::CurrencyUpdater#update_line_item_currencies!

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

#update_line_item_currencies!Object

Updates prices of order’s line items



16
17
18
19
20
# File 'app/models/spree/order/currency_updater.rb', line 16

def update_line_item_currencies!
  line_items.where('currency != ?', currency).each do |line_item|
    update_line_item_price!(line_item)
  end
end