ianwhite/orm_adapter — pull request #10 by parndt (2012-03-25 10:09:46+00:00)
Title: Only monkey patch ActiveRecord::Base when it's been loaded.

This prevents the database connection being activated when it is not appropriate.
E.g. asset precompilation with sprockets.

All relevant tests passing for me.
@josevalim Also all of devise tests are passing with this change.

Also, all tests pass with Refinery CMS with this change which is the reason I'm making this change so that asset pre-compilation works out of the box with Heroku.

Thanks! :)