diff options
| author | af83 | 2017-07-03 12:20:39 +0200 |
|---|---|---|
| committer | af83 | 2017-07-03 12:20:39 +0200 |
| commit | 3fc84b19b1ba7a230a208d2f5b5dffb68003da8e (patch) | |
| tree | 22aa8328fb125201f7feb03fe531a9e6d73a182d | |
| parent | 3852df30997fc75449ce762505d70261dc917af3 (diff) | |
| download | chouette-core-3fc84b19b1ba7a230a208d2f5b5dffb68003da8e.tar.bz2 | |
Fix Calendar#convert_to_time_table to avoid the +1 day bug
| -rw-r--r-- | app/models/calendar.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/calendar.rb b/app/models/calendar.rb index 70fea9619..fb575515a 100644 --- a/app/models/calendar.rb +++ b/app/models/calendar.rb @@ -28,7 +28,7 @@ class Calendar < ActiveRecord::Base self.dates.each do |d| tt.dates << Chouette::TimeTableDate.new(date: d, in_out: true) end - self.date_ranges.each do |p| + self.periods.each do |p| tt.periods << Chouette::TimeTablePeriod.new(period_start: p.begin, period_end: p.end) end end |
