X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/14ba9f0a37dbf491a0a125a29b50848edf6dc3fe..63862d008e85a0d492393122eddfd01f717f6bcb:/vendor/plugins/validates_email_format_of/README.markdown diff --git a/vendor/plugins/validates_email_format_of/README.markdown b/vendor/plugins/validates_email_format_of/README.markdown deleted file mode 100644 index d4325743a..000000000 --- a/vendor/plugins/validates_email_format_of/README.markdown +++ /dev/null @@ -1,58 +0,0 @@ -Validates email format -====================== - -Validate various formats of email address against RFC 2822. - -Usage ------ - - class PersonTest < ActiveSupport::TestCase - should_validate_email_format_of :email - end - - class Person < ActiveRecord::Base - validates_email_format_of :email - end - -Options -------- - - :message => - String. A custom error message (default is: " does not appear to be a valid e-mail address") - - :on => - Symbol. Specifies when this validation is active (default is :save, other options :create, :update) - - :allow_nil => - Boolean. Allow nil values (default is false) - - :allow_blank => - Boolean. Allow blank values (default is false) - - :if => - Specifies a method, proc or string to call to determine if the validation should occur - (e.g. :if => :allow_validation, or :if => Proc.new { |user| user.signup_step > 2 }). The method, - proc or string should return or evaluate to a true or false value. - - :unless => - See :if option. - -Testing -------- - -To execute the unit tests run rake test. - -The unit tests for this plugin use an in-memory sqlite3 database. - -Installing the gem ------------------- - -* gem sources -a http://gems.github.com (only needed once) -* sudo gem install dancroak-validates\_email\_format\_of - -Credits -------- - -Written by Alex Dunae (dunae.ca), 2006-07. - -Thanks to Francis Hwang (http://fhwang.net/) at Diversion Media for creating the 1.1 update.