diff options
| author | Alban Peignier | 2018-05-09 15:53:44 +0200 |
|---|---|---|
| committer | Alban Peignier | 2018-05-09 15:53:44 +0200 |
| commit | 7107266518c028bebea7e4a89fd1db1040935b35 (patch) | |
| tree | 77ea7d1eb966fca197b1074b4f4f22ef44f69212 /app/models | |
| parent | d0ab0eb848a96587ac0e0ab26db962c15e559185 (diff) | |
| download | chouette-core-7107266518c028bebea7e4a89fd1db1040935b35.tar.bz2 | |
Use Workbench#compliance_control_set_ids virtual attribute to merge with existing owner_compliance_control_set_ids. Refs #6960
Diffstat (limited to 'app/models')
| -rw-r--r-- | app/models/workbench.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/workbench.rb b/app/models/workbench.rb index 64e9ae92d..1bca91c56 100644 --- a/app/models/workbench.rb +++ b/app/models/workbench.rb @@ -61,6 +61,10 @@ class Workbench < ApplicationModel id.present? && ComplianceControlSet.find(id) end + def compliance_control_set_ids=(compliance_control_set_ids) + self.owner_compliance_control_set_ids = (owner_compliance_control_set_ids || {}).merge compliance_control_set_ids + end + private def initialize_output |
