Methods
Class Public methods
new(content, errors, attribute) Link
Instance Public methods
<<(message) Link
# File activemodel/lib/active_model/errors.rb, line 645 def <<(message) ActiveSupport::Deprecation.warn("Calling `<<` to an ActiveModel::Errors message array in order to add an error is deprecated. Please call `ActiveModel::Errors#add` instead.") @errors.add(@attribute, message) __setobj__ @errors.messages_for(@attribute) self end
clear() Link
# 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