1
0
Fork 0
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:
Carlos Antonio da Silva 2014-01-27 08:24:33 -02:00
parent 801baeed69
commit 26fb57b58d

View file

@ -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