mongoid 4.0.0 renamed metadata method to __metadata