method

invalid?

rails latest stable - Class: ActiveModel::DeprecatedErrorMethods

Method deprecated or moved

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

invalid?(attribute)
public

No documentation available.

# File activemodel/lib/active_model/deprecated_error_methods.rb, line 23
    def invalid?(attribute)
      ActiveSupport::Deprecation.warn "Errors#invalid?(attribute) has been deprecated, use Errors#[attribute].any? instead"
      self[attribute].any?
    end