method
clear
v6.1.7.7 -
Show latest stable
- Class:
ActiveModel::DeprecationHandlingMessageArray
clear()public
No documentation available.
# 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