method
empty?
v4.0.2 -
Show latest stable
- Class:
ActiveModel::Errors
empty?()public
Returns true if no errors are found, false otherwise. If the error message is a string it can be empty.
person.errors.full_messages # => ["name can not be nil"] person.errors.empty? # => false