A mechanism to configure global before hooks
Author: dhruvparanjapeCreated Jan 15, 2025Updated Jan 16, 2025
Labelsfeature request
I am looking to implement query tags for activerecord when it's used inside a grape API class. One of the things I am looking into is a way to populate a context for the query tags callback inside the grape before callback.
It would be awesome if we could inject such callbacks into all Grape::API classes configuring them once. Sort of what Rails allows with their railties system.
Source: ruby-grape/grape