app/controllers/hubstats/application_controller.rb in hubstats-0.0.4 vs app/controllers/hubstats/application_controller.rb in hubstats-0.0.5

- old
+ new

@@ -3,10 +3,11 @@ before_filter :set_time private def set_time - @timespan = TIMESPAN_ARRAY[cookies[:hubstats_index].to_i][:date].ago.to_date || 2.weeks.ago.to_date + cookies[:hubstats_index] ||= 2 + @timespan = TIMESPAN_ARRAY[cookies[:hubstats_index].to_i][:date].ago.to_date end end end