grape

https://github.com/intridea/grape

Ruby

An opinionated framework for creating REST-like APIs in Ruby.

PersonalProjectsFinder#execute

Finds the projects belonging to the user in "@user", limited to either
public projects or projects visible to the given user.

current_user - When given the list of projects is limited to those only
               visible by this user.

Returns an ActiveRecord::Relation.

Source | Google | Stack overflow

Edit

git clone [email protected]:intridea/grape.git

cd grape

open

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-PersonalProjectsFinder-execute-for-pr


# Commit to git

git add git commit -m "better docs for PersonalProjectsFinder#execute"


# Open pull request

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

hub fork

git push <your name> -your-name--update-docs-PersonalProjectsFinder-execute-for-pr

hub pull-request


# Celebrate!