grape-swagger-rails
grape-swagger-rails copied to clipboard
Add before_index proc so that it can be called every time index is hit
I needed a hook so that I could create an oauth token based on the logged in user
| 2 Warnings | |
|---|---|
| :warning: | There’re library changes, but not tests. That’s OK as long as you’re refactoring existing code. |
| :warning: | Unless you’re refactoring existing code, please update CHANGELOG.md. |
Here's an example of a CHANGELOG.md entry:
* [#85](https://github.com/ruby-grape/grape-swagger-rails/pull/85): Add before_index proc so that it can be called every time index is hit - [@boberetezeke](https://github.com/boberetezeke).
Generated by :no_entry_sign: danger
This needs doc, tests and a passing build please.