solidus
https://github.com/solidusio/solidus
Ruby
🛒 Solidus, the open-source eCommerce framework for industry trailblazers.
Spree::OrderUpdater#update
This is a multi-purpose method for processing logic related to changes in the Order. It is meant to be called from various observers so that the Order is aware of changes that affect totals and other values stored in the Order. This method should never do anything to the Order that results in a save call on the object with callbacks (otherwise you will end up in an infinite recursion as the associations try to save and then in turn try to call +update!+ again.)
Edit
git clone [email protected]:solidusio/solidus.git
cd solidus
open core/app/models/spree/order_updater.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Spree--OrderUpdater-update-for-pr
# Commit to gitgit add core/app/models/spree/order_updater.rbgit commit -m "better docs for Spree::OrderUpdater#update"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Spree--OrderUpdater-update-for-pr
hub pull-request
# Celebrate!