openfoodnetwork
https://github.com/openfoodfoundation/openfoodnetwork
Ruby
Connect suppliers, distributors and consumers to trade local produce.
OpenFoodNetwork::OrderCyclePermissions#visible_enterprises
List of any enterprises whose exchanges I should be able to see in order_cycle NOTE: the enterprises a given user can see actually in the OC interface depend on the relationships of their enterprises to the coordinator of the order cycle, rather than on the order cycle itself
Edit
git clone [email protected]:openfoodfoundation/openfoodnetwork.git
cd openfoodnetwork
open lib/open_food_network/order_cycle_permissions.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-OpenFoodNetwork--OrderCyclePermissions-visible_enterprises-for-pr
# Commit to gitgit add lib/open_food_network/order_cycle_permissions.rbgit commit -m "better docs for OpenFoodNetwork::OrderCyclePermissions#visible_enterprises"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-OpenFoodNetwork--OrderCyclePermissions-visible_enterprises-for-pr
hub pull-request
# Celebrate!