aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib/active_model
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2011-08-16 11:06:40 -0700
committerXavier Noria <fxn@hashref.com>2011-08-16 11:06:40 -0700
commit0245792c833c8b13fe53f8ae9f477b63dab928b6 (patch)
tree5b87fcfd31d9189647d06caa6444e36bdcda32ac /activemodel/lib/active_model
parentd0d25a9317aaea794f30e067e9388fe4e08bcde5 (diff)
parentc5f97b5063d1d60341f9e984f29a3b9812fb4c7e (diff)
downloadrails-0245792c833c8b13fe53f8ae9f477b63dab928b6.tar.gz
rails-0245792c833c8b13fe53f8ae9f477b63dab928b6.tar.bz2
rails-0245792c833c8b13fe53f8ae9f477b63dab928b6.zip
Merge branch 'master' of github.com:lifo/docrails
Diffstat (limited to 'activemodel/lib/active_model')
-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