diff options
| author | Xinhui | 2017-09-26 12:35:38 +0200 | 
|---|---|---|
| committer | Xinhui | 2017-09-26 12:35:38 +0200 | 
| commit | ed0f3e4600da3843067e22bd5531db9d06445453 (patch) | |
| tree | 71d559cbafdb46e11d2e3be084bf833eb5a89edf | |
| parent | 2ef9dab602d1b3b757fba902faba3ec1ba52d5a0 (diff) | |
| download | chouette-core-ed0f3e4600da3843067e22bd5531db9d06445453.tar.bz2 | |
Remove action override, notice is now handle by gem responder
| -rw-r--r-- | app/controllers/compliance_controls_controller.rb | 8 | 
1 files changed, 0 insertions, 8 deletions
| diff --git a/app/controllers/compliance_controls_controller.rb b/app/controllers/compliance_controls_controller.rb index 0f4ca3481..20f4b15af 100644 --- a/app/controllers/compliance_controls_controller.rb +++ b/app/controllers/compliance_controls_controller.rb @@ -9,19 +9,11 @@ class ComplianceControlsController < BreadcrumbController      @compliance_control.build_compliance_control_block    end -  def create -    create!(notice: t('notice.compliance_control.created')) -  end -    def update      path = compliance_control_set_compliance_control_path(parent, resource)      update!(notice: t('notice.compliance_control.updated')) { path }    end -  def destroy -    destroy!(notice: t('notice.compliance_control.destroyed')) -  end -    private    def compliance_control_params      params.require(:compliance_control).permit(:name, :code, :criticity, :comment, :control_attributes, :type, compliance_control_block_attributes: [:name, :transport_mode]) | 
