instance method
clear
Ruby on Rails 7.0.10
Since v3.1.12Signature
clear
Clears all errors. Clearing the errors does not, however, make the model valid. The next time the validations are run (for example, via ActiveRecord::Validations#valid?), the errors collection will be filled again if any validations fail.
Source
# File activemodel/lib/active_model/errors.rb, line 81
Defined in activemodel/lib/active_model/errors.rb line 81
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveModel::Errors