Open HalfBloody opened 7 months ago
Opened a pull request to fix that, unless there is a usecase for passing positional arguments only.
Try using Counterparty.select(:name, :id)
instead of Counterparty.pluck(:name, :id)
. Pluck returns an "eager" array whereas select is a "lazy" ActiveRecord scope.
The positional arguments are intentional because the syntax is nicer. If this is a common problem I'd accept a PR that detects an array of arrays and iterates through those, which would make pluck work.
Was trying:
But as a result I got.
It works as expected only when unpacking the array argument:
Would be great if the select would accept an array as argument.