solidus

https://github.com/solidusio/solidus

Ruby

🛒 Solidus, the open-source eCommerce framework for industry trailblazers.

Spree::StockItem#reduce_count_on_hand_to_zero

Sets the count on hand to zero if it not already zero.

Source | Google | Stack overflow

Edit

git clone [email protected]:solidusio/solidus.git

cd solidus

open core/app/models/spree/stock_item.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Spree--StockItem-reduce_count_on_hand_to_zero-for-pr


# Commit to git

git add core/app/models/spree/stock_item.rbgit commit -m "better docs for Spree::StockItem#reduce_count_on_hand_to_zero"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Spree--StockItem-reduce_count_on_hand_to_zero-for-pr

hub pull-request


# Celebrate!