Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit e6f412def3ec9defcc1a97d1d9c4a8880b18d624 1 parent 70521c8
@csshsh csshsh authored
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.
Please sign in to comment.
Something went wrong with that request. Please try again.