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

Merged
merged 1 commit into from May 27, 2011

Conversation

Projects
None yet
2 participants

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 added a commit that referenced this pull request May 27, 2011

Merge pull request #55 from samuelkadolph/add_predicates_to_function_…
…node

Include Arel::Predicates to Arel::Nodes::Function

@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