Update mongoid.rb

fix for Mongoid 3