mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fix doc markup of clear_validators!
This commit is contained in:
parent
801baeed69
commit
26fb57b58d
1 changed files with 2 additions and 2 deletions
|
@ -201,12 +201,12 @@ module ActiveModel
|
|||
# # #<StrictValidator:0x007fbff3204a30 @options={strict:true}>
|
||||
# # ]
|
||||
#
|
||||
# If one runs Person.clear_validators! and then checks to see what
|
||||
# If one runs <tt>Person.clear_validators!</tt> and then checks to see what
|
||||
# validators this class has, you would obtain:
|
||||
#
|
||||
# Person.validators # => []
|
||||
#
|
||||
# Also, the callback set by +validate :cannot_be_robot+ will be erased
|
||||
# Also, the callback set by <tt>validate :cannot_be_robot</tt> will be erased
|
||||
# so that:
|
||||
#
|
||||
# Person._validate_callbacks.empty? # => true
|
||||
|
|
Loading…
Reference in a new issue