diff options
| author | Luc Donnet | 2017-07-13 17:13:12 +0200 |
|---|---|---|
| committer | Luc Donnet | 2017-07-13 17:13:12 +0200 |
| commit | ea3ad8d1f9db76e3d2dfc5f96c930af8db074690 (patch) | |
| tree | bde3f033418d512a80ef28703abb4c021c5a0f06 /app/controllers/networks_controller.rb | |
| parent | 3ef09ffa403dd253c19537bd3d477357d85bfa3d (diff) | |
| parent | 0a2f9ff965389133fb9656dfb5b222ccfc2b0531 (diff) | |
| download | chouette-core-ea3ad8d1f9db76e3d2dfc5f96c930af8db074690.tar.bz2 | |
Merge branch 'master' into staging
Diffstat (limited to 'app/controllers/networks_controller.rb')
| -rw-r--r-- | app/controllers/networks_controller.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/app/controllers/networks_controller.rb b/app/controllers/networks_controller.rb index ea8410c5b..d1f83340e 100644 --- a/app/controllers/networks_controller.rb +++ b/app/controllers/networks_controller.rb @@ -12,7 +12,12 @@ class NetworksController < BreadcrumbController def show @map = NetworkMap.new(resource).with_helpers(self) + show! do + @network = @network.decorate(context: { + line_referential: line_referential + }) + build_breadcrumb :show end end @@ -31,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 |
