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.)

Source | Google | Stack overflow

Edit

git clone [email protected]:solidusio/solidus.git

cd solidus

open core/app/models/spree/order_updater.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Spree--OrderUpdater-update-for-pr


# Commit to git

git add core/app/models/spree/order_updater.rbgit commit -m "better docs for Spree::OrderUpdater#update"


# Open pull request

gem 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!