diff options
author | Rob Zolkos <robzolkos@gmail.com> | 2012-05-07 21:43:05 +1000 |
---|---|---|
committer | Rob Zolkos <robzolkos@gmail.com> | 2012-05-07 21:43:05 +1000 |
commit | 89fff791fa55da09d39b09c7a5e5afe066f79f85 (patch) | |
tree | 85144b70becf0d4993ada10a41d3e7d34f2e6200 /activerecord | |
parent | 61587b18d2b4b03041cc7e54da00cff6344abeec (diff) | |
download | rails-89fff791fa55da09d39b09c7a5e5afe066f79f85.tar.gz rails-89fff791fa55da09d39b09c7a5e5afe066f79f85.tar.bz2 rails-89fff791fa55da09d39b09c7a5e5afe066f79f85.zip |
Doc for ActiveRecord::Result empty? method
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/result.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/result.rb b/activerecord/lib/active_record/result.rb index fb4b89b87b..fd276ccf5d 100644 --- a/activerecord/lib/active_record/result.rb +++ b/activerecord/lib/active_record/result.rb @@ -28,6 +28,7 @@ module ActiveRecord alias :map! :map alias :collect! :map + # Returns true if there are no records. def empty? rows.empty? end |