style check

This commit is contained in:
Tanguy PATTE 2015-08-20 16:32:25 +02:00
parent d3579ba3ee
commit e7b45e6833

View file

@ -12,7 +12,6 @@ class Admin::DossierController < ApplicationController
@formulaire = @dossier.formulaire @formulaire = @dossier.formulaire
@dossier = @dossier.decorate @dossier = @dossier.decorate
rescue ActiveRecord::RecordNotFound rescue ActiveRecord::RecordNotFound
redirect_start redirect_start
@ -20,7 +19,7 @@ class Admin::DossierController < ApplicationController
def index def index
@dossier = Dossier.find(params[:dossier_id]) @dossier = Dossier.find(params[:dossier_id])
redirect_to url_for({controller: 'admin/dossier', action: :show, :dossier_id => @dossier.id}) redirect_to url_for(controller: 'admin/dossier', action: :show, dossier_id: @dossier.id)
rescue rescue
redirect_start redirect_start
end end
@ -28,6 +27,6 @@ class Admin::DossierController < ApplicationController
private private
def redirect_start def redirect_start
redirect_to url_for({controller: '/start', action: :error_dossier}) redirect_to url_for(controller: '/start', action: :error_dossier)
end end
end end