Merge pull request #1249 from commandprompt/configurable_schedules

implements configurable schedule granularity
This commit is contained in:
Ana María Martínez Gómez 2017-02-01 15:41:28 +01:00 committed by GitHub
commit 945b4aac60
11 changed files with 56 additions and 24 deletions

View file

@ -16,7 +16,8 @@ class EventType < ActiveRecord::Base
alias_attribute :name, :title
# If LENGTH_STEP must be divisor of 60, otherwise the schedule wont be displayed properly
LENGTH_STEP = 15
LENGTH_STEP = defined?(SCHEDULE_CELL_SIZE) ? SCHEDULE_CELL_SIZE : 15
private