LearnBoost/mongoose — pull request #1809 by owenallenaz (2013-11-27 02:05:17+00:00)
Title: findByIdAndUpdate will now respect the overwrite option

Previously findByIdAndUpdate would not respect the `overwrite : true` option if passed due to a call to `castDoc` which did not pass along overwrite.