remove unused string substitution

This commit is contained in:
Aaron Patterson 2011-01-08 20:15:15 -08:00
parent 3b677aa006
commit 12f5158f09
1 changed files with 1 additions and 6 deletions

View File

@ -314,12 +314,7 @@ module ActiveRecord
protected
def select(sql, name = nil, binds = []) #:nodoc:
result = exec_query(sql, name, binds)
columns = result.columns.map { |column|
column.sub(/^"?\w+"?\./, '')
}
result.rows.map { |row| Hash[columns.zip(row)] }
exec_query(sql, name, binds).to_a
end
def table_structure(table_name)