Methods

Class Index [+]

Quicksearch

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 8
 8:         def self.included(base)
 9:           DataMapper::Validations::FormatValidator::FORMATS.merge!(
10:             :email_address => [
11:               EmailAddress,
12:               lambda { |field, value|
13:                 '%s is not a valid email address'.t(value)
14:               }
15:             ]
16:           )
17:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.