diff options
author | Florian Weber <csshsh@gmail.com> | 2005-11-09 10:38:48 +0000 |
---|---|---|
committer | Florian Weber <csshsh@gmail.com> | 2005-11-09 10:38:48 +0000 |
commit | e6f412def3ec9defcc1a97d1d9c4a8880b18d624 (patch) | |
tree | 81f2fcc2f2ea818dca18d8ba3e1e8dde1c1b9b13 /activerecord | |
parent | 70521c8f5955474bbf69cfde1526c528ddbbc960 (diff) | |
download | rails-e6f412def3ec9defcc1a97d1d9c4a8880b18d624.tar.gz rails-e6f412def3ec9defcc1a97d1d9c4a8880b18d624.tar.bz2 rails-e6f412def3ec9defcc1a97d1d9c4a8880b18d624.zip |
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
Diffstat (limited to 'activerecord')
-rwxr-xr-x | activerecord/lib/active_record/validations.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/validations.rb b/activerecord/lib/active_record/validations.rb index 1fef9d0c8a..e8ddf0f3c8 100755 --- a/activerecord/lib/active_record/validations.rb +++ b/activerecord/lib/active_record/validations.rb @@ -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. |