diff options
| author | Teddy Wing | 2018-01-23 14:57:07 +0100 |
|---|---|---|
| committer | Zog | 2018-01-25 17:18:01 +0100 |
| commit | 6c969baf047a7c13b871c5fea41cda54e2b1f7fd (patch) | |
| tree | 074efafff1a6be07a8dbb64e0f2aed85f1afa7df /app/controllers/networks_controller.rb | |
| parent | 4e034f42107a2016db3a032d3c0cd1a5f8e43635 (diff) | |
| download | chouette-core-6c969baf047a7c13b871c5fea41cda54e2b1f7fd.tar.bz2 | |
NetworkDecorator: Convert to new action links interface
And remove the "create" link from the gear menu and header links of the
:show page because it didn't make sense there. Leave a "create" link on
the index page though.
Refs #5586
Diffstat (limited to 'app/controllers/networks_controller.rb')
| -rw-r--r-- | app/controllers/networks_controller.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/controllers/networks_controller.rb b/app/controllers/networks_controller.rb index 79a5eb97b..1c69b1240 100644 --- a/app/controllers/networks_controller.rb +++ b/app/controllers/networks_controller.rb @@ -89,9 +89,8 @@ class NetworksController < ChouetteController end def decorate_networks(networks) - ModelDecorator.decorate( + NetworkDecorator.decorate( networks, - with: NetworkDecorator, context: { line_referential: line_referential } |
