Re: [Rails-core] ActiveRecord Calculations

2006-02-25 Thread Michael Koziarski
> Thanks everyone... No, thank you. This is a great addition. -- Cheers Koz ___ Rails-core mailing list Rails-core@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-core

Re: [Rails-core] ActiveRecord Calculations

2006-02-25 Thread David Heinemeier Hansson
> Hot off the trac patches is my patch for ActiveRecord Calculations You can now test this goodness off the trunk as it has been applied. -- David Heinemeier Hansson http://www.loudthinking.com -- Broadcasting Brain http://www.basecamphq.com -- Online project management http://www.backpackit.com

[Rails-core] ActiveRecord Calculations

2006-02-25 Thread Rick Olson
Hot off the trac patches is my patch for ActiveRecord Calculations (heavily based on my plugin): http://dev.rubyonrails.org/ticket/3958. Not only does it replace the count method, but it adds methods for sum, maximum, minimum, and average. I think the coolest part, however, is using grouped queri