Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Conditionally skip email validation. #545
There are some cases in which you might not want to force the presence of an email (for example when using Oauth with a twitter account) so it becomes kinda handy to simply define a method like this one in the model:
and skip the email presence validation, while keeping the Validatable module intact.
It's just a little contribution but i hope you find it useful.
Something like this could be :)