diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-01-05 13:50:08 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-01-05 13:50:08 -0800 |
commit | 9731c862ecb827b16213c5bdb0f2bebbfaf9d608 (patch) | |
tree | 19b311c76b30023360348f15afd741362b751839 | |
parent | 64c82f9ec6b2ba15c185bec223548c79a6ec0d0d (diff) | |
download | rails-9731c862ecb827b16213c5bdb0f2bebbfaf9d608.tar.gz rails-9731c862ecb827b16213c5bdb0f2bebbfaf9d608.tar.bz2 rails-9731c862ecb827b16213c5bdb0f2bebbfaf9d608.zip |
AR internals expect a normal hash, otherwise there are serialization incompatibilities
-rw-r--r-- | activerecord/lib/active_record/result.rb | 2 |
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 |