lib/timeframe.rb in timeframe-0.0.2 vs lib/timeframe.rb in timeframe-0.0.3

- old
+ new

@@ -245,10 +245,10 @@ # Returns the same Timeframe, only a year earlier def last_year self.class.new((from - 1.year), (to - 1.year)) end - def to_json # :nodoc: + def to_json(*) # :nodoc: { :from => from, :to => to }.to_json end # URL-friendly like "2008-10-25/2009-11-12" def to_param