instance method
clear
Ruby on Rails 6.1.7.10
Since v6.1.7.10 Last seen in v6.1.7.10Signature
clear()
No documentation comment.
Source
# File activemodel/lib/active_model/errors.rb, line 653
def clear
ActiveSupport::Deprecation.warn("Calling `clear` to an ActiveModel::Errors message array in order to delete all errors is deprecated. Please call `ActiveModel::Errors#delete` instead.")
@errors.delete(@attribute)
end
Defined in activemodel/lib/active_model/errors.rb line 653
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveModel::DeprecationHandlingMessageArray