refactor due date tag on todo for mobile and non-mobile view

This commit is contained in:
Reinier Balt 2014-07-17 13:56:08 +02:00
parent b7126998b2
commit bafd55cf09
4 changed files with 82 additions and 65 deletions

View file

@ -24,4 +24,9 @@ class Preference < ActiveRecord::Base
date.in_time_zone(time_zone).beginning_of_day
end
def format_date (date)
return date ? date.in_time_zone(time_zone).strftime("#{date_format}") : ''
end
end