diff options
| author | af83 | 2017-07-03 13:40:56 +0200 | 
|---|---|---|
| committer | af83 | 2017-07-03 13:40:56 +0200 | 
| commit | 5220e7bad9e252983e1bfc1850fd3459ca802267 (patch) | |
| tree | 800a4fbb02cf1f920a2bde2d3c76bf904bacf7ea /app/controllers/time_tables_controller.rb | |
| parent | 3fc84b19b1ba7a230a208d2f5b5dffb68003da8e (diff) | |
| download | chouette-core-5220e7bad9e252983e1bfc1850fd3459ca802267.tar.bz2 | |
Adapt test & controller according to convert_to_timetable fix
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 | 
