diff options
author | Vipul A M <vipulnsward@gmail.com> | 2013-08-11 11:18:22 +0530 |
---|---|---|
committer | Vipul A M <vipulnsward@gmail.com> | 2013-08-12 10:00:43 +0530 |
commit | 4c101ccd82375f14d5de73e740a900444fe0a3d3 (patch) | |
tree | 859a3cb53bab20ef4762e6373733a6d16c761503 /activerecord | |
parent | 4f5f59a492bd32afa476ac6b51ca5295b70fe246 (diff) | |
download | rails-4c101ccd82375f14d5de73e740a900444fe0a3d3.tar.gz rails-4c101ccd82375f14d5de73e740a900444fe0a3d3.tar.bz2 rails-4c101ccd82375f14d5de73e740a900444fe0a3d3.zip |
drop extra variable
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb b/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb index 97e1bc5379..32244b1755 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb @@ -39,8 +39,8 @@ module ActiveRecord # Returns an array of the values of the first column in a select: # select_values("SELECT id FROM companies LIMIT 3") => [1,2,3] def select_values(arel, name = nil) - result = select_rows(to_sql(arel, []), name) - result.map { |v| v[0] } + select_rows(to_sql(arel, []), name) + .map { |v| v[0] } end # Returns an array of arrays containing the field values. |