perfectline/validates_existence — pull request #16 by dvandersluis (2012-11-07 17:32:46+00:00)
Title: Allow new objects to pass validation

There are definitely use cases for validating an object where the associated object has not yet been saved (perhaps I am creating both objects at the same time). This PR adds a `allow_new` (default: `false`) option to the validation which if `true` will allow new objects to pass existence validation.