aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2011-01-05 13:50:08 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2011-01-05 13:50:08 -0800
commit9731c862ecb827b16213c5bdb0f2bebbfaf9d608 (patch)
tree19b311c76b30023360348f15afd741362b751839 /activerecord
parent64c82f9ec6b2ba15c185bec223548c79a6ec0d0d (diff)
downloadrails-9731c862ecb827b16213c5bdb0f2bebbfaf9d608.tar.gz
rails-9731c862ecb827b16213c5bdb0f2bebbfaf9d608.tar.bz2
rails-9731c862ecb827b16213c5bdb0f2bebbfaf9d608.zip
AR internals expect a normal hash, otherwise there are serialization incompatibilities
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/result.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/result.rb b/activerecord/lib/active_record/result.rb
index 8deff1478f..47a5ac2700 100644
--- a/activerecord/lib/active_record/result.rb
+++ b/activerecord/lib/active_record/result.rb
@@ -23,7 +23,7 @@ module ActiveRecord
private
def hash_rows
@hash_rows ||= @rows.map { |row|
- ActiveSupport::OrderedHash[@columns.zip(row)]
+ Hash[@columns.zip(row)]
}
end
end