8693f4194c
Conflicts: app/views/users/recapitulatif/show.html.haml spec/features/recapitulatif_page/_commentaires_flux_spec.rb spec/features/recapitulatif_page/show_page_spec.rb
19 lines
543 B
Ruby
19 lines
543 B
Ruby
class Users::RecapitulatifController < UsersController
|
|
def show
|
|
|
|
@dossier = Dossier.find(params[:dossier_id])
|
|
@dossier = @dossier.decorate
|
|
@procedure = @dossier.procedure
|
|
|
|
# mettre dans le modele
|
|
@commentaires = @dossier.commentaires.order(created_at: :desc)
|
|
|
|
@commentaires = @commentaires.all.decorate
|
|
|
|
#TODO load user email
|
|
@commentaire_email = 'user@email'
|
|
rescue ActiveRecord::RecordNotFound
|
|
flash.alert = t('errors.messages.dossier_not_found')
|
|
redirect_to url_for(controller: :siret)
|
|
end
|
|
end
|