XML export

This commit is contained in:
Stella Rouzi 2016-06-13 23:02:48 +03:00
parent 0d6199058f
commit 70d0091fbf
3 changed files with 43 additions and 0 deletions

View file

@ -12,6 +12,13 @@ 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
##