diff options
| author | Luc Donnet | 2017-07-03 15:37:45 +0200 |
|---|---|---|
| committer | Luc Donnet | 2017-07-03 15:37:45 +0200 |
| commit | 9ada6224335862b51c460dc78d7487596323fef8 (patch) | |
| tree | 6b8694d94abd5aaf5cee7b3a0e9b2aa98ebaefea /app/controllers/time_tables_controller.rb | |
| parent | b9faf2b87816ffc67af4bf10826ea51d049e2a48 (diff) | |
| parent | 5220e7bad9e252983e1bfc1850fd3459ca802267 (diff) | |
| download | chouette-core-9ada6224335862b51c460dc78d7487596323fef8.tar.bz2 | |
Merge branch 'master' of github.com:AF83/stif-boiv
Diffstat (limited to 'app/controllers/time_tables_controller.rb')
| -rw-r--r-- | app/controllers/time_tables_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/time_tables_controller.rb b/app/controllers/time_tables_controller.rb index 3704f2885..6d2639981 100644 --- a/app/controllers/time_tables_controller.rb +++ b/app/controllers/time_tables_controller.rb @@ -49,8 +49,8 @@ class TimeTablesController < ChouetteController calendar.dates.each_with_index do |date, i| @time_table.dates << Chouette::TimeTableDate.new(date: date, position: i, in_out: true) end - calendar.date_ranges.each_with_index do |date_range, i| - @time_table.periods << Chouette::TimeTablePeriod.new(period_start: date_range.begin, period_end: date_range.end, position: i) + calendar.periods.each_with_index do |period, i| + @time_table.periods << Chouette::TimeTablePeriod.new(period_start: period.begin, period_end: period.end, position: i) end end |
