Talk boxes with less information and schedule view simplified

This commit is contained in:
Ana 2016-06-01 11:22:22 +02:00
parent 6ba3512d2b
commit 2905c8858c
8 changed files with 38 additions and 31 deletions

View file

@ -223,6 +223,13 @@ class Event < ActiveRecord::Base
(100 * result.values.count(true) / result.values.compact.count).to_s
end
##
# Returns the number of columns this event should span in the schedule
#
def span
self.event_type.length / EventType::LENGTH_STEP
end
private
##