mirror of
https://github.com/fspc/BikeShed-1.git
synced 2026-11-01 01:16:07 -05:00
Added Time entries index page
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user