charkost / prosopite

:mag: Rails N+1 queries auto-detection with zero false positives / false negatives
Apache License 2.0
1.48k stars 45 forks source link

Make prosopite config accessible #65

Closed tomwilshere closed 1 year ago

tomwilshere commented 1 year ago

This allows reading/writing to the config during runtime e.g. if you want to set a different query limit for a particular spec.

For example we want to set some central config for Prosopite, then override it for each test run, we can now read the existing config at the start of the spec and reset it at the end.

Wasn't sure whether to make more of the config accessible, or just these three keys which are more likely to be used dynamically. Open to suggestions!

charkost commented 1 year ago

Thanks @tomwilshere !