aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlban Peignier2018-04-01 20:48:47 +0200
committerAlban Peignier2018-04-01 20:48:47 +0200
commit80751c9ba2cee3ab26030a68a6ca27c29efdcc41 (patch)
treeb1823885488f31ae7a13a79132a768a6659f4070
parentac8587140a44a197ec3b30435a2194bf8b7f0e7c (diff)
downloadchouette-core-80751c9ba2cee3ab26030a68a6ca27c29efdcc41.tar.bz2
Fixes typo in Import::Gtfs#import_stops to access to stop_area_referential. Refs #6368
-rw-r--r--app/models/import/gtfs.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/import/gtfs.rb b/app/models/import/gtfs.rb
index fb81423bb..a35e84b61 100644
--- a/app/models/import/gtfs.rb
+++ b/app/models/import/gtfs.rb
@@ -131,7 +131,7 @@ class Import::Gtfs < Import::Base
stop_area.name = stop.name
stop_area.area_type = stop.location_type == "1" ? "zdlp" : "zdep"
- stop_area.parent = stop_referential.stop_areas.find_by!(registration_number: stop.parent_station) if stop.parent_station.present?
+ stop_area.parent = stop_area_referential.stop_areas.find_by!(registration_number: stop.parent_station) if stop.parent_station.present?
stop_area.latitude, stop_area.longitude = stop.lat, stop.lon
stop_area.kind = "commercial"