aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2011-08-14 19:29:35 +0530
committerVijay Dev <vijaydev.cse@gmail.com>2011-08-14 19:29:35 +0530
commitb98d3ab6f521e1fadcfb1f3e59089c301b460ff4 (patch)
treed44d258fbb2fe2d42256d8425230d267feeeecf7 /activemodel
parent33be1b0e4bfe6b1dd2acf34d6f214f1b6c776bcc (diff)
downloadrails-b98d3ab6f521e1fadcfb1f3e59089c301b460ff4.tar.gz
rails-b98d3ab6f521e1fadcfb1f3e59089c301b460ff4.tar.bz2
rails-b98d3ab6f521e1fadcfb1f3e59089c301b460ff4.zip
fix misleading comment (originally made by Tate Johnson, we lost this commit while porting to the rails repo)
Diffstat (limited to 'activemodel')
-rw-r--r--activemodel/lib/active_model/errors.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/lib/active_model/errors.rb b/activemodel/lib/active_model/errors.rb
index d5665de561..36819553ee 100644
--- a/activemodel/lib/active_model/errors.rb
+++ b/activemodel/lib/active_model/errors.rb
@@ -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