style check

This commit is contained in:
Tanguy PATTE 2015-08-20 16:39:36 +02:00
parent 438151ded7
commit 152e7cd31e

View file

@ -3,13 +3,13 @@ class RecapitulatifController < ApplicationController
@dossier = Dossier.find(params[:dossier_id]) @dossier = Dossier.find(params[:dossier_id])
@dossier = @dossier.decorate @dossier = @dossier.decorate
#mettre dans le modèle # mettre dans le modele
@commentaires = @dossier.commentaires.order(created_at: :desc) @commentaires = @dossier.commentaires.order(created_at: :desc)
@commentaires = @commentaires.all.decorate @commentaires = @commentaires.all.decorate
@commentaire_email = @dossier.mail_contact @commentaire_email = @dossier.mail_contact
rescue rescue
redirect_to url_for({controller: :start, action: :error_dossier}) redirect_to url_for(controller: :start, action: :error_dossier)
end end
end end