module DataMapper::Validations::Format::Email
Constants
- EmailAddress
Almost RFC2822 (No attribution reference available).
This differs in that it does not allow local domains (test@localhost). 99% of the time you do not want to allow these email addresses in a public web application.
Public Class Methods
included(base)
click to toggle source
# File lib/dm-validations/formats/email.rb, line 7 def self.included(base) DataMapper::Validations::FormatValidator::FORMATS.merge!( :email_address => [ EmailAddress, lambda { |field, value| '%s is not a valid email address'.t(value) } ] ) end