aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/result.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2011-02-04 18:08:31 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2011-02-04 18:14:59 -0800
commit59f7780a3454a14054d1d33d9b6e31192ab2e58b (patch)
tree03f0318134781173b87959dcdd21c1ac0bd4eeda /activerecord/lib/active_record/result.rb
parentacccb72cb12ab55bb01c3dce32f54f4a59ebec6c (diff)
downloadrails-59f7780a3454a14054d1d33d9b6e31192ab2e58b.tar.gz
rails-59f7780a3454a14054d1d33d9b6e31192ab2e58b.tar.bz2
rails-59f7780a3454a14054d1d33d9b6e31192ab2e58b.zip
adjust query counts to be consistent across databases, make sure database log the same things
Diffstat (limited to 'activerecord/lib/active_record/result.rb')
-rw-r--r--activerecord/lib/active_record/result.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/result.rb b/activerecord/lib/active_record/result.rb
index 47a5ac2700..0465b21e88 100644
--- a/activerecord/lib/active_record/result.rb
+++ b/activerecord/lib/active_record/result.rb
@@ -20,6 +20,10 @@ module ActiveRecord
hash_rows.each { |row| yield row }
end
+ def to_hash
+ hash_rows
+ end
+
private
def hash_rows
@hash_rows ||= @rows.map { |row|