aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-10-04 15:19:27 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2010-10-04 15:19:27 -0700
commitd8135eb452bfb956e093c61cf12adb9b0da6e28b (patch)
tree9d6019369e1a82d7f64f6fd6bbd372868e752485
parent232e56ce872383ef1805d1a7ef0fbf5475e5cfb3 (diff)
downloadrails-d8135eb452bfb956e093c61cf12adb9b0da6e28b.tar.gz
rails-d8135eb452bfb956e093c61cf12adb9b0da6e28b.tar.bz2
rails-d8135eb452bfb956e093c61cf12adb9b0da6e28b.zip
* + flatten is not required in >= Ruby 1.8.7
-rw-r--r--activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb2
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