method
invalid?
invalid?(attribute)
public
Hide 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