Created
April 12, 2011 16:33
-
-
Save tenderlove/915852 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# totally contrived example | |
User.select(Account[:name]).join(:accounts).where(User[:id].in(Group.where(:name => 'foo'))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@tenderlove: see activerecord-hackery/squeel@f33784217e3bbb030c21
FWIW: evaluate was a typical case of overthinking -- I didn't like stomping on Kernel#eval, even though there's no reason to care in this case. :)