mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #13145 from acapilleri/fix_email_example
fix email regex example code [ci skip]
This commit is contained in:
commit
05a685eeb7
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue