1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Allow capital letters in the email address in the the validates_format_of example

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2950 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
Florian Weber 2005-11-09 10:38:48 +00:00
parent 70521c8f59
commit e6f412def3

View file

@ -500,7 +500,7 @@ module ActiveRecord
# provided.
#
# class Person < ActiveRecord::Base
# validates_format_of :email, :with => /^([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})$/, :on => :create
# validates_format_of :email, :with => /^([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})$/i, :on => :create
# end
#
# A regular expression must be provided or else an exception will be raised.