From b1ec65ac141a13588beb61748c74e1408c2c7895 Mon Sep 17 00:00:00 2001 From: Kyle Drake Date: Sun, 23 Jul 2017 11:12:32 -0700 Subject: [PATCH 1/2] fix obsolete limit! call --- app/site.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/site.rb b/app/site.rb index e6f711ec..7191a31e 100644 --- a/app/site.rb +++ b/app/site.rb @@ -93,11 +93,11 @@ get '/site/:username/stats' do if params[:days] stats_dataset.limit! params[:days] else - stats_dataset.limit! 7 + stats_dataset = stats_dataset.limit 7 end end else - stats_dataset.limit! 7 + stats_dataset = stats_dataset.limit 7 end @stats[:stat_days] = stats_dataset.all.reverse From 49d8732459222f0a12d7f24e755d469928c9e726 Mon Sep 17 00:00:00 2001 From: Kyle Drake Date: Sun, 23 Jul 2017 11:15:11 -0700 Subject: [PATCH 2/2] remove debug puts --- ext/ago.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/ext/ago.rb b/ext/ago.rb index c0537096..dc60dc29 100644 --- a/ext/ago.rb +++ b/ext/ago.rb @@ -136,7 +136,6 @@ module Ago # If the argument passed into ago() is a symbol, focus the ago statement # down to the level specified in the symbol - puts focus.class.inspect if focus.class == Symbol break if u == focus || u == :second elsif focus.class == Integer