Rails - Table Join With Specified Fields in Select

| Comments

Figured this out after a lot of monkeying-around (I mean script/console).

Situation:

:joins is the only way to do this, using :includes does NOT respect the select clause. Here a gist:

Admittedly, this is hacky, too hacky for my comfort. Comment/suggest a better/cleaner solution?

Note: Found out that there is a gem to do this: ar-select-with-include