Merge pull request #1249 from commandprompt/configurable_schedules
implements configurable schedule granularity
This commit is contained in:
commit
945b4aac60
11 changed files with 56 additions and 24 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue