diff options
author | Vijay Dev <vijaydev.cse@gmail.com> | 2011-08-14 19:29:35 +0530 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2011-08-14 19:29:35 +0530 |
commit | b98d3ab6f521e1fadcfb1f3e59089c301b460ff4 (patch) | |
tree | d44d258fbb2fe2d42256d8425230d267feeeecf7 | |
parent | 33be1b0e4bfe6b1dd2acf34d6f214f1b6c776bcc (diff) | |
download | rails-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)
-rw-r--r-- | activemodel/lib/active_model/errors.rb | 2 |
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 |