solidus
https://github.com/solidusio/solidus
Ruby
🛒 Solidus, the open-source eCommerce framework for industry trailblazers.
Spree::Variant.in_stock
Returns variants that are in stock. When stock locations are provided as a parameter, the scope is limited to variants that are in stock in the provided stock locations.
Edit
git clone [email protected]:solidusio/solidus.git
cd solidus
open core/app/models/spree/variant.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Spree--Variant-in_stock-for-pr
# Commit to gitgit add core/app/models/spree/variant.rbgit commit -m "better docs for Spree::Variant.in_stock"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Spree--Variant-in_stock-for-pr
hub pull-request
# Celebrate!