diff options
| author | Teddy Wing | 2017-06-19 15:58:02 +0200 |
|---|---|---|
| committer | Teddy Wing | 2017-06-19 17:42:03 +0200 |
| commit | 6f1fa09dd12979933bef8bb97cdc6ae4ff10a9f0 (patch) | |
| tree | 42f2862c28db3f5f2f3131200986dc51ff87274d /app/controllers | |
| parent | 3a9dbe0db981536ea7c138915e423ac009235c60 (diff) | |
| download | chouette-core-6f1fa09dd12979933bef8bb97cdc6ae4ff10a9f0.tar.bz2 | |
RoutingConstraintZones#show: Render header links from #action_links
Use the `RoutingConstraintZonesDecorator` to render the header links
instead of constructing them in the view. This allows us to reuse the
links.
To be honest, I haven't actually tested this for real. Don't know how to
set up an Interdiction de Traffic Local.
Refs #3479
Diffstat (limited to 'app/controllers')
| -rw-r--r-- | app/controllers/routing_constraint_zones_controller.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/controllers/routing_constraint_zones_controller.rb b/app/controllers/routing_constraint_zones_controller.rb index 7707427b0..9d2fd712c 100644 --- a/app/controllers/routing_constraint_zones_controller.rb +++ b/app/controllers/routing_constraint_zones_controller.rb @@ -16,6 +16,10 @@ class RoutingConstraintZonesController < ChouetteController def show @routing_constraint_zone = collection.find(params[:id]) + @routing_constraint_zone = @routing_constraint_zone.decorate(context: { + referential: @referential, + line: @line + }) end protected |
