This commit is contained in:
Stella Rouzi 2016-06-15 17:52:59 +03:00
parent 70d0091fbf
commit 2efd1bc92d
4 changed files with 13 additions and 10 deletions

View file

@ -12,13 +12,6 @@ class EventType < ActiveRecord::Base
LENGTH_STEP = 15
##
# Return the length in timestamp format (HH:MM)
#
def length_timestamp
[length / 60, length % 60].map { |t| t.to_s.rjust(2, '0') }.join(':')
end
private
##