Support for Rails 4 and Mongoid 4