implement duplication

This commit is contained in:
Bilal
2020-07-13 21:45:00 +02:00
parent 0741f8a230
commit e41d7603d0
7 changed files with 55 additions and 8 deletions

View File

@@ -38,10 +38,6 @@ class ContractTemplatesController < ApplicationController
end
def update
unless @contract_template.editable?
redirect_to([@project, :contract_templates], alert: t('.error')) and return
end
@contract_template.attributes = contract_template_params
if @contract_template.save