If you're deploying a mongoid application to heroku, and you'd like to use asset precompilation, you may run into precompilation problems. Stick a file in
mongoid_precompilation_patch.rake and put the following in it:
namespace :assets do
task :silence_mongoid do
puts "Skipping connection to Mongo DB"
task :environment => :silence_mongoid