instance method invalid?

Ruby on Rails 2.2.3

Since v2.2.3 Last seen in v3.0.20

Available in: v2.2.3 v2.3.18 v3.0.20

Signature

invalid?(attribute)

No documentation comment.

Parameters

attribute req
Source
# 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

Defined in activemodel/lib/active_model/deprecated_error_methods.rb line 23 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveModel::DeprecatedErrorMethods

Type at least 2 characters to search.

↑↓ navigate · open · esc close