lib/trackoid/reader_extender.rb in trackoid-0.3.2 vs lib/trackoid/reader_extender.rb in trackoid-0.3.3

- old
+ new

@@ -50,10 +50,10 @@ @total = @total + other @hours = @hours.zip(other.hourly).map!(&:sum) self end - def as_json + def as_json(options = nil) @total end # Solution proposed by Yehuda Katz in the following Stack Overflow: # http://stackoverflow.com/questions/1095789/sub-classing-fixnum-in-ruby