Include Arel::Predicates to Arel::Nodes::Function #55

Merged
merged 1 commit into from May 27, 2011

2 participants

@samuelkadolph

This lets you do table[:id].count.eq(2).
Useful for when you GROUP BY and want to add HAVING COUNT("things"."id") = 2.

@tenderlove tenderlove merged commit 5930020 into rails:master May 27, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment