Or actually I guess just doing the iteration like order.line_items.where('currency != ?', order.currency).each is equivalent to checking if it is needed...