PaperTrail whodunnit support for Grape APIs
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
.gitignore
CONTRIBUTORS.md
Gemfile
Gemfile.lock
LICENSE
README.md
grape-papertrail.gemspec

README.md

grape-papertrail

PaperTrail whodunnit support for Grape APIs. Very preliminary. Usage boils down to

set_papertrail_user(some_object)

and/or

set_paper_trail_controller_info(info)

inside a Grape endpoint. Mega props fly out to @davidcelis for his api-pagination gem, from which I stole the Grape hooking code.