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.
Allow to conditionally skip email validation.
Sounds good, but e-mail required should be a protected method.
It's actually a protected method, check the full file email_required? it's right under password_required? right under the protected declaration.
I forgot the documentation thou :P
Something like this could be :)
# Checks whether an email is needed or not. For validations only.
# Always return true, but can be overridden in your model
# to skip the email presence validation, for example:
# If you are also using Oauth and you don't need the email.
Sorry, my bad, merged!