Added mongoid4 support