diff options
| author | Teddy Wing | 2017-07-10 12:34:47 +0200 |
|---|---|---|
| committer | Teddy Wing | 2017-07-12 11:11:14 +0200 |
| commit | d6185a881dc0428950629acfd16c632f413ac728 (patch) | |
| tree | 0ccda6c500a13f35cba8bbed55e5ba9d4d8b570d | |
| parent | 09aef0d99cd86a75afe6aa81297cc7d3e7d8cae4 (diff) | |
| download | chouette-core-d6185a881dc0428950629acfd16c632f413ac728.tar.bz2 | |
RoutingConstraintZones#show: Match decorator context from #index
Just wrote the `#index` method and saw that the `#show` method's
`context` hash contents are a bit verbose. Shorten them to match the
`#index` method. These mean the same thing but are a bit cleaner.
Refs #3479
| -rw-r--r-- | app/controllers/routing_constraint_zones_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/routing_constraint_zones_controller.rb b/app/controllers/routing_constraint_zones_controller.rb index 3d0ee19ed..6c3cb8a29 100644 --- a/app/controllers/routing_constraint_zones_controller.rb +++ b/app/controllers/routing_constraint_zones_controller.rb @@ -28,8 +28,8 @@ class RoutingConstraintZonesController < ChouetteController def show show! do |format| @routing_constraint_zone = @routing_constraint_zone.decorate(context: { - referential: current_referential, - line: parent.id + referential: referential, + line: parent }) build_breadcrumb :show |
