Added Time entries index page

This commit is contained in:
Jason Denney
2014-04-27 18:59:50 -04:00
parent 3d71add637
commit 4224f0de40
4 changed files with 34 additions and 1 deletions
+8
View File
@@ -12,4 +12,12 @@ class TimeEntry < ActsAsLoggable::Log
copy_action_id: 4
})
end
def duration
end_date - start_date
end
def duration_in_hours
(duration / 1.hour).round(2)
end
end