aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/validations.rb
diff options
context:
space:
mode:
authorFlorian Weber <csshsh@gmail.com>2005-11-09 10:38:48 +0000
committerFlorian Weber <csshsh@gmail.com>2005-11-09 10:38:48 +0000
commite6f412def3ec9defcc1a97d1d9c4a8880b18d624 (patch)
tree81f2fcc2f2ea818dca18d8ba3e1e8dde1c1b9b13 /activerecord/lib/active_record/validations.rb
parent70521c8f5955474bbf69cfde1526c528ddbbc960 (diff)
downloadrails-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/lib/active_record/validations.rb')
-rwxr-xr-xactiverecord/lib/active_record/validations.rb2
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.