Permalink
Browse files

drop extra variable

  • Loading branch information...
1 parent 4f5f59a commit 4c101ccd82375f14d5de73e740a900444fe0a3d3 @vipulnsward vipulnsward committed Aug 11, 2013
@@ -39,8 +39,8 @@ def select_value(arel, name = nil, binds = [])
# 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.

0 comments on commit 4c101cc

Please sign in to comment.