From e6f412def3ec9defcc1a97d1d9c4a8880b18d624 Mon Sep 17 00:00:00 2001 From: Florian Weber Date: Wed, 9 Nov 2005 10:38:48 +0000 Subject: 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 --- activerecord/lib/active_record/validations.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/lib') 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. -- cgit v1.2.3