1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #38756 from timdorr/patch-2

Tiny doc fix in .validates
This commit is contained in:
Xavier Noria 2020-03-17 16:56:51 +01:00 committed by GitHub
commit 08dfa9212d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -64,7 +64,7 @@ module ActiveModel
# and strings in shortcut form.
#
# validates :email, format: /@/
# validates :role, inclusion: %(admin contributor)
# validates :role, inclusion: %w(admin contributor)
# validates :password, length: 6..20
#
# When using shortcut form, ranges and arrays are passed to your