diff options
author | Xavier Noria <fxn@hashref.com> | 2011-08-16 11:06:40 -0700 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2011-08-16 11:06:40 -0700 |
commit | 0245792c833c8b13fe53f8ae9f477b63dab928b6 (patch) | |
tree | 5b87fcfd31d9189647d06caa6444e36bdcda32ac /activemodel/lib/active_model | |
parent | d0d25a9317aaea794f30e067e9388fe4e08bcde5 (diff) | |
parent | c5f97b5063d1d60341f9e984f29a3b9812fb4c7e (diff) | |
download | rails-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.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 |