aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/networks_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/networks_controller.rb')
-rw-r--r--app/controllers/networks_controller.rb8
1 files changed, 8 insertions, 0 deletions
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