instance method
invalid?
Ruby on Rails 2.3.18
Since v2.2.3 Last seen in v3.0.20Signature
invalid?(attribute)
No documentation comment.
Parameters
-
attributereq
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