diff options
| author | Zog | 2018-05-07 16:57:22 +0200 | 
|---|---|---|
| committer | Zog | 2018-05-07 16:57:22 +0200 | 
| commit | 430550b965035be3d78abad790e6c44fdc69087f (patch) | |
| tree | b5762d5055910c6ff14881c1f9101c0bfdc65ea5 /app/controllers/workgroups_controller.rb | |
| parent | fb4d1c66cb4c0cd83e183a13ca5f9ea44803631b (diff) | |
| download | chouette-core-430550b965035be3d78abad790e6c44fdc69087f.tar.bz2 | |
Refs #6960; Add a view to set the controls associated to each workbench
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..5d422380c --- /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, owner_compliance_control_set_ids: @workgroup.available_compliance_control_sets.keys]) +  end +end | 
