diff options
| author | Zog | 2018-01-24 07:28:57 +0100 | 
|---|---|---|
| committer | Zog | 2018-01-31 15:12:03 +0100 | 
| commit | eaf51fdc334923edd3dbd399d2217ff0bbe0699a (patch) | |
| tree | 455b73c3549daddb70171704b356068b4f0e12aa /app/models/calendar.rb | |
| parent | 90f54f0acfe65ff276a229239809ce0e9fddf0b0 (diff) | |
| download | chouette-core-eaf51fdc334923edd3dbd399d2217ff0bbe0699a.tar.bz2 | |
Refs #5682; Add application_days field to calendars
Diffstat (limited to 'app/models/calendar.rb')
| -rw-r--r-- | app/models/calendar.rb | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/calendar.rb b/app/models/calendar.rb index a7fd9220c..d58e7737d 100644 --- a/app/models/calendar.rb +++ b/app/models/calendar.rb @@ -5,6 +5,7 @@ require_relative 'calendar/period'  class Calendar < ActiveRecord::Base    include DateSupport    include PeriodSupport +  include ApplicationDaysSupport    has_paper_trail class_name: 'PublicVersion'    belongs_to :organisation @@ -28,7 +29,7 @@ class Calendar < ActiveRecord::Base        self.periods.each do |p|          tt.periods << Chouette::TimeTablePeriod.new(period_start: p.begin, period_end: p.end)        end -      tt.int_day_types = 508 +      tt.int_day_types = self.int_day_types      end    end  | 
