This pull request introduces the ability to calculate the average of a column as shown below
# Calculates the average price for all products
Product.average(:price)
# Calculates the average for a subset of products
awesome_products = Product.filter(name__startswith: "Awesome")
awesome_products.average(:price)
This pull request introduces the ability to calculate the average of a column as shown below
Closes #144