From dc155d36bdf0dc1c056888794586fca10c1f11b0 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Tue, 11 Jul 2017 17:28:19 +0200 Subject: Networks#index: Use new table builder helper on both networks tables Refs #3479 --- app/controllers/networks_controller.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'app/controllers/networks_controller.rb') diff --git a/app/controllers/networks_controller.rb b/app/controllers/networks_controller.rb index 2e2f3f0d1..d1f83340e 100644 --- a/app/controllers/networks_controller.rb +++ b/app/controllers/networks_controller.rb @@ -36,6 +36,14 @@ class NetworksController < BreadcrumbController if collection.out_of_bounds? redirect_to params.merge(:page => 1) end + + @networks = ModelDecorator.decorate( + @networks, + with: NetworkDecorator, + context: { + line_referential: line_referential + } + ) } build_breadcrumb :index end -- cgit v1.2.3