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
@dossier = @dossier.decorate
rescue ActiveRecord::RecordNotFound
redirect_start
@ -20,7 +19,7 @@ class Admin::DossierController < ApplicationController
def index
@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
redirect_start
end
@ -28,6 +27,6 @@ class Admin::DossierController < ApplicationController
private
def redirect_start
redirect_to url_for({controller: '/start', action: :error_dossier})
redirect_to url_for(controller: '/start', action: :error_dossier)
end
end