Skip to content
Browse files

Doc for ActiveRecord::Result empty? method

  • Loading branch information...
1 parent 61587b1 commit 89fff791fa55da09d39b09c7a5e5afe066f79f85 @robzolkos robzolkos committed May 7, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 activerecord/lib/active_record/result.rb
View
1 activerecord/lib/active_record/result.rb
@@ -28,6 +28,7 @@ def to_hash
alias :map! :map
alias :collect! :map
+ # Returns true if there are no records.
def empty?
rows.empty?
end

0 comments on commit 89fff79

Please sign in to comment.
Something went wrong with that request. Please try again.