aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/networks_controller.rb
diff options
context:
space:
mode:
authorTeddy Wing2017-07-11 17:28:19 +0200
committerTeddy Wing2017-07-12 11:11:14 +0200
commitdc155d36bdf0dc1c056888794586fca10c1f11b0 (patch)
tree311951d2cd0986e04415c8c9b3964e03a07f660e /app/controllers/networks_controller.rb
parentccbd1cfa43662933991dd85bef072e5ca0ae77c7 (diff)
downloadchouette-core-dc155d36bdf0dc1c056888794586fca10c1f11b0.tar.bz2
Networks#index: Use new table builder helper on both networks tables
Refs #3479
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