ernie/squeel — Issue #77: Support for explicit table aliasing
Author: accuser
Created: 2011-11-15 12:01:21+00:00
State: open

Whilst table aliasing is supported where an association dictates, being able to be explicit about this would be useful:

Post.join { subscribers }.where { subscribers.user_id.eq(1) }.join{ subscribers.as(subscribers_2) }.where { subscribers_2.user_id.eq(2) }