diff options
| author | cedricnjanga | 2017-09-27 16:08:19 +0200 | 
|---|---|---|
| committer | cedricnjanga | 2017-09-27 16:23:22 +0200 | 
| commit | 5911206bbadb2c3c9609f8be0ce1affd6584015e (patch) | |
| tree | d0b70454259fd985f1f6b6d0bbcd5616055fac83 /app/controllers/compliance_controls_controller.rb | |
| parent | eb761e221efc3ce0b09bfea96415907afac33d4a (diff) | |
| download | chouette-core-5911206bbadb2c3c9609f8be0ce1affd6584015e.tar.bz2 | |
Refs #4615 Change spec and controller regarding to the ComplianceControl models changes
Diffstat (limited to 'app/controllers/compliance_controls_controller.rb')
| -rw-r--r-- | app/controllers/compliance_controls_controller.rb | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/app/controllers/compliance_controls_controller.rb b/app/controllers/compliance_controls_controller.rb index 7deeab01d..b4fb2f1de 100644 --- a/app/controllers/compliance_controls_controller.rb +++ b/app/controllers/compliance_controls_controller.rb @@ -19,7 +19,7 @@ class ComplianceControlsController < BreadcrumbController    end    def compliance_control_params -    base = [:name, :code, :criticity, :comment, :control_attributes, :type, compliance_control_block_attributes: [:name, :transport_mode]] +    base = [:name, :code, :origin_code, :criticity, :comment, :control_attributes, :type, compliance_control_block_attributes: [:name, :transport_mode]]      permited = base + dynamic_attributes_params      params.require(:compliance_control).permit(permited)    end | 
