metaminded / tabulatr2

A very JS enhanced Tabulatr edition. Rails4, Ruby 2 required
Other
21 stars 10 forks source link

Implement aggregations #13

Open Crunch09 opened 10 years ago

Crunch09 commented 10 years ago

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. :construction_worker:

Crunch09 commented 9 years ago

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