codegram / date_validator

A simple, ORM agnostic, Ruby >=2.2 compatible date validator for Rails, based on ActiveModel.
http://thoughts.codegram.com/date-validation-with-rails-3
MIT License
495 stars 82 forks source link

Specify the object being validated is available as input to the Proc #67

Closed pmukerji closed 8 years ago

pmukerji commented 8 years ago

I needed access to the object itself to use a modification of another attribute in the validation. This PR is just an addition to the README that I would have found useful when figuring out how to do this.

oriolgual commented 8 years ago

Thanks!