aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZog2018-04-25 17:27:09 +0200
committerZog2018-04-25 17:27:09 +0200
commit53990515457b7618e9b2b36832751ad8622fd56e (patch)
tree9cd3ce48e51b5a824194e7ef1fd357935bd3c688
parent86bab6946dbb9bce2aa62bb7a6b528458333c03d (diff)
downloadchouette-core-53990515457b7618e9b2b36832751ad8622fd56e.tar.bz2
Refs #6762; Fix RoutingConstraintZone#vehicle_journeys
-rw-r--r--app/models/chouette/routing_constraint_zone.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/app/models/chouette/routing_constraint_zone.rb b/app/models/chouette/routing_constraint_zone.rb
index 713972243..671ce2871 100644
--- a/app/models/chouette/routing_constraint_zone.rb
+++ b/app/models/chouette/routing_constraint_zone.rb
@@ -7,11 +7,7 @@ module Chouette
belongs_to :route
has_array_of :stop_points, class_name: 'Chouette::StopPoint'
- # FIXME has_array_of doesn't support module in class_name
- # belongs_to_array_in_many :vehicle_journeys, class_name: 'Chouette::VehicleJourney'
- def vehicle_journeys
- referential.vehicle_journeys.with_ignored_routing_contraint_zones_containing self
- end
+ belongs_to_array_in_many :vehicle_journeys, class_name: 'Chouette::VehicleJourney', array_name: :ignored_routing_contraint_zones
def update_vehicle_journey_checksums
vehicle_journeys.each(&:update_checksum!)