noahd1 / oink

Log parser to identify actions which significantly increase VM heap size
MIT License
1.18k stars 71 forks source link

uninitialized constant Oink::Middleware::ActiveRecord when no AR loaded #12

Closed fwoeck closed 13 years ago

fwoeck commented 13 years ago

Hi, this is rather a cosmetic thing:

in Rails3-projects without AR oink throws an error:

uninitialized constant Oink::Middleware::ActiveRecord

--Frank

noahd1 commented 13 years ago

Thanks for the heads up. I fixed this in 0198645fc60f16994b6067308eae171e83a87af9 so that the error is more what you'd expect.

To avoid getting the error altogether, you can configure oink to only log memory usage:

YourApplication::Application.middleware.use( Oink::Middleware, :instruments => :memory )
fwoeck commented 13 years ago

Hi, thank you for the fix and the tip! --Frank