consul

https://github.com/consul/consul

Ruby

Consul - Open Government and E-Participation Web Software

ApplicationController#report_data

Method for fetching report data. These data can be displayed in Grid/Tile/List.
This method will first process params for options and then for current model.
From these options and model we get view (for fetching data) and settings (will hold info about paging).
Then this method will return JSON object with settings and data.

Source | Google | Stack overflow

Edit

git clone [email protected]:consul/consul.git

cd consul

open

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-ApplicationController-report_data-for-pr


# Commit to git

git add git commit -m "better docs for ApplicationController#report_data"


# Open pull request

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

hub fork

git push <your name> -your-name--update-docs-ApplicationController-report_data-for-pr

hub pull-request


# Celebrate!