Permalink
Browse files

fix misleading comment (originally made by Tate Johnson, we lost this…

… commit while porting to the rails repo)
  • Loading branch information...
1 parent 0ab65e8 commit 388f09c28b8840366cafcbc3953ca24201cdfae9 @vijaydev vijaydev committed with fxn Aug 14, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 activemodel/lib/active_model/errors.rb
View
2 activemodel/lib/active_model/errors.rb
@@ -174,7 +174,7 @@ def count
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

0 comments on commit 388f09c

Please sign in to comment.