Permalink
Browse files

Merge pull request #11838 from vipulnsward/drop_extra_var

drop extra variable
  • Loading branch information...
2 parents e45f176 + 4c101cc commit bd14099e2ffbcbc33dfa36e274edca98a4921daa @steveklabnik steveklabnik committed Aug 12, 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 bd14099

Please sign in to comment.