aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorAlban Peignier2018-01-11 15:32:07 +0100
committerAlban Peignier2018-01-11 15:32:07 +0100
commitb56d9e01cf1e8a0cf50c597c863c2b775b7a322d (patch)
treef1f9394b9ab64855ccfb9a3addcd89aea474a8d1 /app
parentd1b6592497f365d5982be84085fa8dabfd4a6b1b (diff)
downloadchouette-core-b56d9e01cf1e8a0cf50c597c863c2b775b7a322d.tar.bz2
Fixes Chouette::RoutingConstraintZone#route_id presence spec. Refs #5552
Diffstat (limited to 'app')
-rw-r--r--app/models/chouette/routing_constraint_zone.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/chouette/routing_constraint_zone.rb b/app/models/chouette/routing_constraint_zone.rb
index 1847f6e25..903922241 100644
--- a/app/models/chouette/routing_constraint_zone.rb
+++ b/app/models/chouette/routing_constraint_zone.rb
@@ -7,7 +7,7 @@ module Chouette
belongs_to :route
has_array_of :stop_points, class_name: 'Chouette::StopPoint'
- validates_presence_of :name, :stop_points, :route, :route_id
+ validates_presence_of :name, :stop_points, :route_id
# validates :stop_point_ids, length: { minimum: 2, too_short: I18n.t('activerecord.errors.models.routing_constraint_zone.attributes.stop_points.not_enough_stop_points') }
validate :stop_points_belong_to_route, :not_all_stop_points_selected