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:
parent
f68c1ef3ed
commit
55fdf173cc
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue