From 66b751ff58b2b9a6b196b8e96f8f33f4875ae03e Mon Sep 17 00:00:00 2001 From: Tanguy PATTE Date: Thu, 20 Aug 2015 16:37:40 +0200 Subject: [PATCH] style check --- app/controllers/dossiers_controller.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/controllers/dossiers_controller.rb b/app/controllers/dossiers_controller.rb index ed0aeba32..d251fb958 100644 --- a/app/controllers/dossiers_controller.rb +++ b/app/controllers/dossiers_controller.rb @@ -9,7 +9,6 @@ class DossiersController < ApplicationController end def create - @dossier_id = params[:pro_dossier_id].strip if dossier_id_is_present? @@ -44,11 +43,10 @@ class DossiersController < ApplicationController end def update - @dossier = Dossier.find(params[:id]) if checked_autorisation_donnees? @dossier.update_attributes(update_params) - redirect_to url_for({controller: :demandes, action: :show, dossier_id: @dossier.id}) + redirect_to url_for(controller: :demandes, action: :show, dossier_id: @dossier.id) else @etablissement = @dossier.etablissement @entreprise = @dossier.entreprise.decorate @@ -64,7 +62,7 @@ class DossiersController < ApplicationController end def dossier_id_is_present? - @dossier_id != "" + @dossier_id != '' end def checked_autorisation_donnees?