mirror of https://github.com/rails/rails
fix misleading comment (originally made by Tate Johnson, we lost this commit while porting to the rails repo)
This commit is contained in:
parent
33be1b0e4b
commit
b98d3ab6f5
|
@ -174,7 +174,7 @@ module ActiveModel
|
|||
to_a.size
|
||||
end
|
||||
|
||||
# Returns true if there are any errors, false if not.
|
||||
# Returns true if no errors are found, false otherwise.
|
||||
def empty?
|
||||
all? { |k, v| v && v.empty? }
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue