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:
commit
08dfa9212d
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