Fix for days calculation being shown as rational number in ruby 1.9.2

This commit is contained in:
tim madden 2012-04-05 10:02:31 -05:00
parent 8d6b9b5dbd
commit 0dad59df4c

View file

@ -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