Hi Rafael, somehow I didn't get a notification about your answer and thought nobody replied.
Will need to think about this more. On Monday, November 19, 2012 4:11:47 AM UTC+2, Rafael Mendonça França wrote: > > 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] > <javascript:>>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]<javascript:> >> . >> To unsubscribe from this group, send email to >> [email protected] <javascript:>. >> 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 view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-core/-/VU1niBOWi7wJ. 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.
