baby_squeel icon indicating copy to clipboard operation
baby_squeel copied to clipboard

Implement `selecting { table.* }`

Open rzane opened this issue 7 years ago • 2 comments

Post.joins(:author).selecting { [post.id, author.*] }

rzane avatar May 30 '17 14:05 rzane

Yes I'd very much like to see this implemented and finally be able to get rid of all the strings I have to use now. Thanks.

octavpo avatar Sep 11 '17 15:09 octavpo

Yeah, this is definitely going to happen. Should be pretty trivial to implement if you'd be interested in taking a stab at it.

The gist of it is:

SomeActiveRecordModel.arel_table[Arel.star]

rzane avatar Sep 11 '17 15:09 rzane