From 0dad59df4c242229516bbe52709a2c691b9f7a7a Mon Sep 17 00:00:00 2001 From: tim madden Date: Thu, 5 Apr 2012 10:02:31 -0500 Subject: [PATCH] Fix for days calculation being shown as rational number in ruby 1.9.2 --- app/helpers/application_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 39c591e4..8e8a2848 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -20,7 +20,7 @@ module ApplicationHelper end def days_from_today(date) - date.in_time_zone.to_date - current_user.time.to_date + Integer (date.in_time_zone.to_date - current_user.time.to_date) end # Check due date in comparison to today's date Flag up date appropriately with