franckverrot / activevalidators

Collection of ActiveModel/ActiveRecord validators
https://rubygems.org/gems/activevalidators
MIT License
306 stars 49 forks source link

Change to Procs in date example #95

Closed alyssais closed 8 years ago

alyssais commented 8 years ago

Fixes #94

franckverrot commented 8 years ago

Thanks!

I was about to merge this but I'm having second thoughts about this: should we rather expose that extra param here instead of making it silently ignoring it, to make it clear for everybody that this callback will be called with it?

alyssais commented 8 years ago

Hmm. Yes, that probably would be better. I'll update the PR.

franckverrot commented 8 years ago

Thanks!