dynamoid

https://github.com/veraticus/dynamoid

Ruby ORM for Amazon's DynamoDB

GrapeRouteHelpers::AllRoutes#decorated_routes

Bringing in PR https://github.com/reprah/grape-route-helpers/pull/21 due to abandonment.

Without the following fix, when two helper methods are the same, but have different arguments
(for example: api_v1_cats_owners_path(id: 1) vs api_v1_cats_owners_path(id: 1, owner_id: 2))
if the helper method with the least number of arguments is defined first (because the route was defined first)
then it will shadow the longer route.

The fix is to sort descending by amount of arguments

Source | Google | Stack overflow

Edit

git clone [email protected]:veraticus/dynamoid.git

cd dynamoid

open

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-GrapeRouteHelpers--AllRoutes-decorated_routes-for-pr


# Commit to git

git add git commit -m "better docs for GrapeRouteHelpers::AllRoutes#decorated_routes"


# Open pull request

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

hub fork

git push <your name> -your-name--update-docs-GrapeRouteHelpers--AllRoutes-decorated_routes-for-pr

hub pull-request


# Celebrate!