method

delete

rails latest stable - Class: ActiveModel::DeprecationHandlingMessageHash

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v6.1.7.7) is shown here.

delete(attribute)
public

No documentation available.

# File activemodel/lib/active_model/errors.rb, line 616
    def delete(attribute)
      ActiveSupport::Deprecation.warn("Calling `delete` to an ActiveModel::Errors messages hash is deprecated. Please call `ActiveModel::Errors#delete` instead.")

      @errors.delete(attribute)
    end