Added Mongoid support