mirror of https://github.com/rails/rails
Api-docs validation defaults missing absence [ci skip]
This commit is contained in:
parent
36094d3745
commit
e58f41af2d
|
@ -12,6 +12,7 @@ module ActiveModel
|
|||
#
|
||||
# Examples of using the default rails validators:
|
||||
#
|
||||
# validates :username, absence: true
|
||||
# validates :terms, acceptance: true
|
||||
# validates :password, confirmation: true
|
||||
# validates :username, exclusion: { in: %w(admin superuser) }
|
||||
|
|
Loading…
Reference in New Issue