lib/trackoid/aggregates.rb in trackoid-0.1.2 vs lib/trackoid/aggregates.rb in trackoid-0.1.3

- old
+ new

@@ -127,9 +127,13 @@ # Aggregation accessors in the model acts like a named scope define_method(name) do |*args| TrackerAggregates.new(self, name, args) end + define_method("#{name}_with_track") do |track_field, *args| + TrackerAggregates.new(self, name, args, track_field) + end + define_method("#{name}=") do raise NoMethodError end end