diff options
| author | Alban Peignier | 2018-05-10 21:39:38 +0200 |
|---|---|---|
| committer | GitHub | 2018-05-10 21:39:38 +0200 |
| commit | 093599f1c2e75ba2a4e3e9e8a6aa2cf665919886 (patch) | |
| tree | d6488fa756d37198f0b50c93e7ddf8e23d3ee46e /app/controllers/workgroups_controller.rb | |
| parent | fdde7e05c29738356abe488a1b80ade098ef269d (diff) | |
| parent | 6f624a7ca68600e93aae71f98182dfeb8c082674 (diff) | |
| download | chouette-core-093599f1c2e75ba2a4e3e9e8a6aa2cf665919886.tar.bz2 | |
Merge pull request #558 from af83/6960-workgroup-edition
Workgroup edition. Fixes #6960
Diffstat (limited to 'app/controllers/workgroups_controller.rb')
| -rw-r--r-- | app/controllers/workgroups_controller.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/app/controllers/workgroups_controller.rb b/app/controllers/workgroups_controller.rb new file mode 100644 index 000000000..3acea248d --- /dev/null +++ b/app/controllers/workgroups_controller.rb @@ -0,0 +1,13 @@ +class WorkgroupsController < ChouetteController + defaults resource_class: Workgroup + + include PolicyChecker + + def show + redirect_to "/" + end + + def workgroup_params + params[:workgroup].permit(workbenches_attributes: [:id, compliance_control_set_ids: @workgroup.compliance_control_sets_by_workgroup.keys]) + end +end |
