gammons/fake_arel — Issue #23: using select before from causes issues
Author: gammons
Created: 2011-11-02 19:25:01+00:00
State: open

The following does not work:

`Reply.select('topics.*, replies.*').from('topics').joins('left join replies on replies.topic_id = topics.id').all`

However, the following does:

`Reply.from('topics').select('replies.*,topics.*').joins('left join replies on replies.topic_id = topics.id').all`

We should not care about the order of the chain.

Sokolov, thoughts? might be a fun problem ;)