Add mongoid support

I had few lines for add mongoid support.