LearnBoost/mongoose — pull request #612 by ded (2011-11-14 21:54:23+00:00)
Title: Do not allow `undefined` values to pass `checkRequired`

Was a bit difficult setting up a dev environment and running tests (which we never managed to get working), but this change seemed rather simple.

This pull request prevents `undefined` values from passing through the `{ required: true }` setting. Previously only `null` values were checked against the value.