openfoodnetwork
https://github.com/openfoodfoundation/openfoodnetwork
Ruby
Connect suppliers, distributors and consumers to trade local produce.
OrderSyncer#force_ship_address_required?
This returns true when the shipping method on the subscription has changed to a delivery (ie. a shipping address is required) AND the existing shipping address on the order matches the shop's address
Edit
git clone [email protected]:openfoodfoundation/openfoodnetwork.git
cd openfoodnetwork
open app/services/order_syncer.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-OrderSyncer-force_ship_address_required--for-pr
# Commit to gitgit add app/services/order_syncer.rbgit commit -m "better docs for OrderSyncer#force_ship_address_required?"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-OrderSyncer-force_ship_address_required--for-pr
hub pull-request
# Celebrate!