made the gem compatible with mongoid 3