diff options
| author | cedricnjanga | 2017-09-21 16:53:56 +0200 |
|---|---|---|
| committer | cedricnjanga | 2017-09-21 17:18:26 +0200 |
| commit | 95efd2d3bf7dea6c2f659d42d1c37cbb2a5fd831 (patch) | |
| tree | d06eaa18e7047f69bc48444c66ec42099056202e /app/models | |
| parent | e287f173746f78de00824aee43811b55bbe62ce8 (diff) | |
| download | chouette-core-95efd2d3bf7dea6c2f659d42d1c37cbb2a5fd831.tar.bz2 | |
Vehicle journey message error update to show the sort_id and not the local_id
Diffstat (limited to 'app/models')
| -rw-r--r-- | app/models/chouette/vehicle_journey_at_stop.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/chouette/vehicle_journey_at_stop.rb b/app/models/chouette/vehicle_journey_at_stop.rb index 156cc761f..a4a4a02c8 100644 --- a/app/models/chouette/vehicle_journey_at_stop.rb +++ b/app/models/chouette/vehicle_journey_at_stop.rb @@ -41,7 +41,7 @@ module Chouette :arrival_day_offset, I18n.t( 'vehicle_journey_at_stops.errors.day_offset_must_not_exceed_max', - local_id: vehicle_journey.objectid.local_id, + short_id: vehicle_journey.objectid.short_id, max: DAY_OFFSET_MAX + 1 ) ) @@ -52,7 +52,7 @@ module Chouette :departure_day_offset, I18n.t( 'vehicle_journey_at_stops.errors.day_offset_must_not_exceed_max', - local_id: vehicle_journey.objectid.local_id, + short_id: vehicle_journey.objectid.short_id, max: DAY_OFFSET_MAX + 1 ) ) |
