solidus
https://github.com/solidusio/solidus
Ruby
🛒 Solidus, the open-source eCommerce framework for industry trailblazers.
Spree::UserAddressBook#persist_order_address
saves order.ship_address and order.bill_address in address book sets ship_address to the default if automatic_default_address is set to true sets bill_address to the default if automatic_default_address is set to true and there is no ship_address if one address is nil, does not save that address
Edit
git clone [email protected]:solidusio/solidus.git
cd solidus
open core/app/models/concerns/spree/user_address_book.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Spree--UserAddressBook-persist_order_address-for-pr
# Commit to gitgit add core/app/models/concerns/spree/user_address_book.rbgit commit -m "better docs for Spree::UserAddressBook#persist_order_address"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Spree--UserAddressBook-persist_order_address-for-pr
hub pull-request
# Celebrate!