We have monkey patched the Mysql2Adapter, which, as a result, causes all our ActiveRecord calls to appear to originate from the monkey patch code, rather than the actual caller. I'd like to be able to configure a list of files that would be treated as if they were part of ActiveRecord, not our app, so the location the query was issued from will be accurate.
I would be happy to implement this, I just need some pointers as to where.