aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2013-12-03 07:47:25 -0800
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2013-12-03 07:47:25 -0800
commit05a685eeb7b480de410d168c70bb432b2b290b99 (patch)
treee2019a3ad7f266d00e2bd5822bf5b11604422443 /activemodel
parenta04b5ee4163e5ff6b8afab37c0b5dc6fd06a676b (diff)
parentf590cdb6561f2c049c73a40815a46a7fef469aa2 (diff)
downloadrails-05a685eeb7b480de410d168c70bb432b2b290b99.tar.gz
rails-05a685eeb7b480de410d168c70bb432b2b290b99.tar.bz2
rails-05a685eeb7b480de410d168c70bb432b2b290b99.zip
Merge pull request #13145 from acapilleri/fix_email_example
fix email regex example code [ci skip]
Diffstat (limited to 'activemodel')
-rw-r--r--activemodel/lib/active_model/validations/validates.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/lib/active_model/validations/validates.rb b/activemodel/lib/active_model/validations/validates.rb
index 9a1ff2ad39..bf588b7bd0 100644
--- a/activemodel/lib/active_model/validations/validates.rb
+++ b/activemodel/lib/active_model/validations/validates.rb
@@ -13,7 +13,7 @@ module ActiveModel
# validates :terms, acceptance: true
# validates :password, confirmation: true
# validates :username, exclusion: { in: %w(admin superuser) }
- # validates :email, format: { with: /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\Z/i, on: :create }
+ # validates :email, format: { with: /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\z/i, on: :create }
# validates :age, inclusion: { in: 0..9 }
# validates :first_name, length: { maximum: 30 }
# validates :age, numericality: true