Browse files

Allow capital letters in the email address in the the validates_forma…

…t_of example

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2950 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 70521c8 commit e6f412def3ec9defcc1a97d1d9c4a8880b18d624 @csshsh csshsh committed Nov 9, 2005
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/validations.rb
View
2 activerecord/lib/active_record/validations.rb
@@ -500,7 +500,7 @@ def validates_uniqueness_of(*attr_names)
# 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.

0 comments on commit e6f412d

Please sign in to comment.