openfoodnetwork
https://github.com/openfoodfoundation/openfoodnetwork
Ruby
Connect suppliers, distributors and consumers to trade local produce.
CheckoutController#expire_current_order
Clears the cached order. Required for #current_order to return a new order to serve as cart. See https://github.com/spree/spree/blob/1-3-stable/core/lib/spree/core/controller_helpers/order.rb#L14 for details.
Edit
git clone [email protected]:openfoodfoundation/openfoodnetwork.git
cd openfoodnetwork
open app/controllers/checkout_controller.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-CheckoutController-expire_current_order-for-pr
# Commit to gitgit add app/controllers/checkout_controller.rbgit commit -m "better docs for CheckoutController#expire_current_order"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-CheckoutController-expire_current_order-for-pr
hub pull-request
# Celebrate!