Skip to content

Commit 26fb57b

Browse files
Fix doc markup of clear_validators!
1 parent 801baee commit 26fb57b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

activemodel/lib/active_model/validations.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,12 +201,12 @@ def validators
201201
# # #<StrictValidator:0x007fbff3204a30 @options={strict:true}>
202202
# # ]
203203
#
204-
# If one runs Person.clear_validators! and then checks to see what
204+
# If one runs <tt>Person.clear_validators!</tt> and then checks to see what
205205
# validators this class has, you would obtain:
206206
#
207207
# Person.validators # => []
208208
#
209-
# Also, the callback set by +validate :cannot_be_robot+ will be erased
209+
# Also, the callback set by <tt>validate :cannot_be_robot</tt> will be erased
210210
# so that:
211211
#
212212
# Person._validate_callbacks.empty? # => true

0 commit comments

Comments
 (0)