Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update updater: Update in-memory items in #update #7

Conversation

jordan-brough
Copy link
Owner

@jordan-brough jordan-brough commented Aug 16, 2016

Addresses solidusio#1389 (comment)

So that any already-loaded line item or shipment objects will be
updated. This is to make it more likely that code like this:

order.update!
order.line_items.each { ... }

will have the correct data without having to issue an order.reload
after the order.update!.

So that any already-loaded line item or shipment objects will be
updated.  To make it more likely that code like this:

    order.update!
    order.line_items.each { ... }

will have the correct data without having to issue an `order.reload`
after the `order.update!`.
@jhawthorn
Copy link

👍

@jordan-brough jordan-brough merged commit 3aecbe9 into remove-adjustment-after-callbacks Aug 16, 2016
@jordan-brough jordan-brough deleted the order-updater-in-memory-objects branch August 16, 2016 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants