clear()
Removes all the errors that have been added.
# File activerecord/lib/active_record/validations.rb, line 152 def clear @errors = {} end