Try to make it work with Mongoid 4.0 & Rails 4