What happens if you call pluck without any select value?

I think this is a good addition to the Rails code base. Mind to open a pull
request?

Rafael Mendonça França
http://twitter.com/rafaelfranca
https://github.com/rafaelfranca



On Thu, Nov 15, 2012 at 10:19 AM, Roman <[email protected]> wrote:

> I suggest that if you don't pass any args to ActiveRecord#pluck, it would
> use the select values. This follows along well with the way other
> AR::Calculations work. As an extra benefit we would be able to pluck
> virtual columns.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Core" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/rubyonrails-core/-/Tlb8yXzd4tsJ.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-core?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en.

Reply via email to