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

Why after_initialize? #16

Closed ngan closed 3 years ago

ngan commented 3 years ago

Hello, the doc says to wrap the configurations in the initializer inside a Rails.application.config.after_initialize... was wondering why that is?

charkost commented 3 years ago

Hello, it is just a recommendation. You can configure prosopite wherever you want if you are doing it before calling Prosopite.scan.

ngan commented 3 years ago

Got it, thanks.