mongoid/mongoid — pull request #1708 by MadRabbit (2012-02-12 18:11:53+00:00)
Title: Heroku lazy assets compilation fix

A little fix for the heroku cedar lazy assets compilation bug that is discussed over here https://github.com/mongoid/mongoid/issues/1166

Basically it checks if it's one of the `assets:precompile` task is run then skips the database connection in this case