From 3a9065e4c116b29946b053e4071af0ff159ad29a Mon Sep 17 00:00:00 2001 From: Simon Lehericey Date: Wed, 29 Mar 2017 15:35:55 +0200 Subject: [PATCH] DescriptionController: remove useless code --- app/controllers/users/description_controller.rb | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/app/controllers/users/description_controller.rb b/app/controllers/users/description_controller.rb index 97df42657..c4944775f 100644 --- a/app/controllers/users/description_controller.rb +++ b/app/controllers/users/description_controller.rb @@ -37,13 +37,6 @@ class Users::DescriptionController < UsersController check_mandatory_fields = true check_mandatory_fields = !(params[:submit].keys.first == 'brouillon') unless params[:submit].nil? - unless @dossier.update_attributes(create_params) - @dossier = @dossier.decorate - - flash.alert = @dossier.errors.full_messages.join('
').html_safe - return redirect_to users_dossier_description_path(dossier_id: @dossier.id) - end - if params[:champs] champs_service_errors = ChampsService.save_champs @dossier.champs, params, @@ -139,9 +132,4 @@ class Users::DescriptionController < UsersController redirect_to url_for(users_dossier_path(@dossier.id)) end end - - def create_params - params.permit() - end - end