diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-10-04 15:19:27 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-10-04 15:19:27 -0700 |
commit | d8135eb452bfb956e093c61cf12adb9b0da6e28b (patch) | |
tree | 9d6019369e1a82d7f64f6fd6bbd372868e752485 /activerecord/lib/active_record/connection_adapters | |
parent | 232e56ce872383ef1805d1a7ef0fbf5475e5cfb3 (diff) | |
download | rails-d8135eb452bfb956e093c61cf12adb9b0da6e28b.tar.gz rails-d8135eb452bfb956e093c61cf12adb9b0da6e28b.tar.bz2 rails-d8135eb452bfb956e093c61cf12adb9b0da6e28b.zip |
* + flatten is not required in >= Ruby 1.8.7
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb index 194842a9a0..95b6a8137d 100644 --- a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb @@ -975,7 +975,7 @@ module ActiveRecord def select(sql, name = nil) fields, rows = select_raw(sql, name) rows.map do |row| - Hash[*fields.zip(row).flatten] + Hash[fields.zip(row)] end end |