Validates Email Veracity Of plugin
Plugin details
Documentation
ruby script/plugin install http://svn.savvica.com/public/plugins/validates_email_veracity_of/
=== Options
* *message*
- Changes the default error message.
* *domain_check*
- Skips domain MX lookup unless true.
* *timeout*
- Time (in seconds) before the domain lookup is skipped. Default is 2.
* *fail_on_timeout*
- Causes validation to fail if a timeout occurs.
* *timeout_message*
- Changes the default timeout error message.
=== Examples
Changes the default error message from 'is invalid.' to 'is not correct.'
validates_email_veracity_of :email_address, :message => 'is not correct.'
Domain MX lookup is skipped.
validates_email_veracity_of :email, :domain_check => false
Causes the domain lookup to timeout if it does not complete within half a second.
validates_email_veracity_of :email, :timeout => 0.5
Causes the validation to fail on timeout and changes the error message to 'is invalid.' to obfuscate it.
validates_email_veracity_of :email, :fail_on_timeout => true, :timeout_message => 'is invalid.'
Further Documentation
There is currently no advanced documentation for this plugin.
New documentationEdit plugin | (0 older versions) | Last edited by: Guest, about 1 year ago

