diff options
| author | Luc Donnet | 2017-09-05 16:16:19 +0200 |
|---|---|---|
| committer | Luc Donnet | 2017-09-05 16:16:19 +0200 |
| commit | 86ec0eb16ec8e0586d1de850942a09cfc65a88f8 (patch) | |
| tree | 639d31db0678b6688feabaf2f70807d0c7a506cb /app/controllers/workbenches_controller.rb | |
| parent | 505a05e07dd418f4da1502790d87b71925f1f5f6 (diff) | |
| parent | b78fff38f57f532e33c418e2bac0ff5948d4f7b4 (diff) | |
| download | chouette-core-86ec0eb16ec8e0586d1de850942a09cfc65a88f8.tar.bz2 | |
Merge branch 'master' of github.com:AF83/stif-boiv
Diffstat (limited to 'app/controllers/workbenches_controller.rb')
| -rw-r--r-- | app/controllers/workbenches_controller.rb | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/app/controllers/workbenches_controller.rb b/app/controllers/workbenches_controller.rb index 19af28a98..bae3fcff2 100644 --- a/app/controllers/workbenches_controller.rb +++ b/app/controllers/workbenches_controller.rb @@ -20,8 +20,13 @@ class WorkbenchesController < BreadcrumbController @q_for_form = scope.ransack(params[:q]) @q_for_result = scope.ransack(ransack_params) @wbench_refs = sort_result(@q_for_result.result).paginate(page: params[:page], per_page: 30) - @wbench_refs = ModelDecorator.decorate(@wbench_refs, with: ReferentialDecorator) - + @wbench_refs = ModelDecorator.decorate( + @wbench_refs, + with: ReferentialDecorator, + context: { + workbench_id: params[:id] + } + ) show! do build_breadcrumb :show end |
