Class: Volt::EmailValidator

Inherits:
FormatValidator show all
Defined in:
lib/volt/models/validators/email_validator.rb

Constant Summary collapse

DEFAULT_OPTIONS =
{
  with: /^([\w\.%\+\-]+)@([\w\-]+\.)+([\w]{2,})$/i,
  message: 'must be an email address'
}

Method Summary

Methods inherited from FormatValidator

#apply, #error_messages, #errors, #initialize, #valid?, validate, #with

Constructor Details

This class inherits a constructor from Volt::FormatValidator