solidus

https://github.com/solidusio/solidus

Ruby

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

Spree::Stock::Packer#stock_item_lookup

Returns a lookup table in the form of:
  {<variant_id> => <stock_item>, ...}

Source | Google | Stack overflow

Edit

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

cd solidus

open core/app/models/spree/stock/packer.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Spree--Stock--Packer-stock_item_lookup-for-pr


# Commit to git

git add core/app/models/spree/stock/packer.rbgit commit -m "better docs for Spree::Stock::Packer#stock_item_lookup"


# 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--Stock--Packer-stock_item_lookup-for-pr

hub pull-request


# Celebrate!