We already have something similar for #where in context of using it with #joins so I think it might be helpful to improve codebases and remove raw sql from these place as well.
I love this feature, since I was looking for column aliasing for some time already. I’ll test this locally, usually there were some problems with preloading (joins). Also looking at the implementation, maybe there is chance to actually use Arel capabilities to build the SQL select part. I’ll check locally as well and comment on PR if I found a better way.
Hello and thanks for reply, it’s defiantly might be done with Arel but I wanted to avoid deep changes on it so prepared light version of preparing SQL before sending it to Arel part