openfoodnetwork

https://github.com/openfoodfoundation/openfoodnetwork

Ruby

Connect suppliers, distributors and consumers to trade local produce.

OpenFoodNetwork::OrderCyclePermissions#visible_variants_for_outgoing_exchanges_to

Find the variants that a user is permitted see within outgoing exchanges
Note that this does not determine whether they actually appear in outgoing exchanges
as this requires first that the variant is included in an incoming exchange

Source | Google | Stack overflow

Edit

git clone [email protected]:openfoodfoundation/openfoodnetwork.git

cd openfoodnetwork

open lib/open_food_network/order_cycle_permissions.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-OpenFoodNetwork--OrderCyclePermissions-visible_variants_for_outgoing_exchanges_to-for-pr


# Commit to git

git add lib/open_food_network/order_cycle_permissions.rbgit commit -m "better docs for OpenFoodNetwork::OrderCyclePermissions#visible_variants_for_outgoing_exchanges_to"


# Open pull request

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

hub fork

git push <your name> -your-name--update-docs-OpenFoodNetwork--OrderCyclePermissions-visible_variants_for_outgoing_exchanges_to-for-pr

hub pull-request


# Celebrate!