diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-07-12 17:52:53 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-07-12 17:52:53 -0700 |
commit | 2c3aab32dd064c2812088c1226562ee522d55d48 (patch) | |
tree | 27a39f29440de6cf2fe1e5b4970ac4439e16200a /activerecord/lib/active_record/connection_adapters | |
parent | 79e9f4a3183064aa5486cda0e7cbddfea6e08c33 (diff) | |
download | rails-2c3aab32dd064c2812088c1226562ee522d55d48.tar.gz rails-2c3aab32dd064c2812088c1226562ee522d55d48.tar.bz2 rails-2c3aab32dd064c2812088c1226562ee522d55d48.zip |
PostgreSQLAdapter#select_raw removing dead code
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb index f4756ed18d..87ae23d104 100644 --- a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb @@ -951,7 +951,6 @@ module ActiveRecord results = result_as_array(res) fields = res.fields rows = results.map do |row| - hashed_row = {} row.each_with_index do |cell, cell_index| # If this is a money type column and there are any currency symbols, # then strip them off. Indeed it would be prettier to do this in @@ -969,8 +968,6 @@ module ActiveRecord row[cell_index] = cell.gsub(/[^-\d,]/, '').sub(/,/, '.') end end - - hashed_row[fields[cell_index]] = cell end row end |