Remove unreachable code

This commit is contained in:
Mathieu Magnin 2018-01-16 14:15:37 +01:00
parent 13b5caf61d
commit 307d7338e5
3 changed files with 0 additions and 14 deletions

View file

@ -1,16 +1,4 @@
class CommentairesController < ApplicationController
def index
@facade = DossierFacades.new(
params[:dossier_id],
(current_gestionnaire || current_user).email,
params[:champs_id]
)
render layout: false
rescue ActiveRecord::RecordNotFound
flash.alert = t('errors.messages.dossier_not_found')
redirect_to url_for(controller: '/')
end
def create
@commentaire = Commentaire.new
@commentaire.champ = @commentaire.dossier.champs.find(params[:champ_id]) if params[:champ_id]

View file

@ -1 +0,0 @@
= render partial: '/users/recapitulatif/commentaires_flux'

View file

@ -86,7 +86,6 @@ Rails.application.routes.draw do
post '/recapitulatif/initiate' => 'recapitulatif#initiate'
post '/commentaire' => 'commentaires#create'
resources :commentaires, only: [:index]
get '/carte/position' => 'carte#get_position'
post '/carte/qp' => 'carte#get_qp'