aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/time_tables_controller.rb
diff options
context:
space:
mode:
authorXinhui2017-05-23 11:54:05 +0200
committerXinhui2017-05-23 11:54:11 +0200
commitf47654ea82d1e418f99df107ed899664c3c6ba2e (patch)
tree019a718a20cdd5201b3ffeb12682a3ea5ef03622 /app/controllers/time_tables_controller.rb
parent7eb6dab3d9a1fcbc374b522d840f8a6829f83051 (diff)
downloadchouette-core-f47654ea82d1e418f99df107ed899664c3c6ba2e.tar.bz2
Fix create time_table with calendar association
Refs #2347
Diffstat (limited to 'app/controllers/time_tables_controller.rb')
-rw-r--r--app/controllers/time_tables_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/time_tables_controller.rb b/app/controllers/time_tables_controller.rb
index dcf8f3e5e..5c4552afb 100644
--- a/app/controllers/time_tables_controller.rb
+++ b/app/controllers/time_tables_controller.rb
@@ -43,7 +43,7 @@ class TimeTablesController < ChouetteController
if calendar
calendar.dates.each_with_index do |date, i|
- @time_table.dates << Chouette::TimeTableDate.new(date: date, position: 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)