solidus
https://github.com/solidusio/solidus
Ruby
🛒 Solidus, the open-source eCommerce framework for industry trailblazers.
Spree::StockLocation#set_up_stock_item
Return either an existing stock item or create a new one. Useful in scenarios where the user might not know whether there is already a stock item for a given variant
Edit
git clone [email protected]:solidusio/solidus.git
cd solidus
open core/app/models/spree/stock_location.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Spree--StockLocation-set_up_stock_item-for-pr
# Commit to gitgit add core/app/models/spree/stock_location.rbgit commit -m "better docs for Spree::StockLocation#set_up_stock_item"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Spree--StockLocation-set_up_stock_item-for-pr
hub pull-request
# Celebrate!