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

Tiny doc fix in .validates

This should be a string array literal. Simple as that :)
This commit is contained in:
Tim Dorr 2020-03-17 11:08:50 -04:00 committed by GitHub
parent f68c1ef3ed
commit 55fdf173cc
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