From a07ae7b2b3d7f7aa50ca3900e53b25ecee48f2a8 Mon Sep 17 00:00:00 2001 From: bsag Date: Wed, 7 Dec 2005 19:11:44 +0000 Subject: [PATCH] Applied Luke's patch (#167) for the staleness colouring bug in Apache. git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@168 a4c988fc-2ded-0310-b66e-134b36920a42 --- tracks/app/helpers/todo_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tracks/app/helpers/todo_helper.rb b/tracks/app/helpers/todo_helper.rb index d00d8349..dd22468a 100644 --- a/tracks/app/helpers/todo_helper.rb +++ b/tracks/app/helpers/todo_helper.rb @@ -77,7 +77,7 @@ module TodoHelper # * l3: created more than 3 x staleness_starts # def staleness_class(item) - if item.due || item.done + if item.due || item.done? return "" elsif item.created_at < (ApplicationController::STALENESS_STARTS*3).days.ago return " stale_l3"