Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement aggregations #13

Open
Crunch09 opened this issue Feb 27, 2014 · 1 comment
Open

Implement aggregations #13

Crunch09 opened this issue Feb 27, 2014 · 1 comment
Milestone

Comments

@Crunch09
Copy link
Contributor

Before:

association :articles, :count

After:

aggregate :articles, method: :count
aggregate :articles, method: :average, on: :price
# or even shorter
count :articles
average :articles, on: :price

This is already in the works. 👷

@Crunch09 Crunch09 added this to the 1.0.0 milestone Feb 27, 2014
@Crunch09
Copy link
Contributor Author

will get back to this once rails 5 lands, maybe left_outer_joins is available then

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant