demarches-normaliennes/app/controllers/users/dossiers/add_siret_controller.rb

14 lines
443 B
Ruby
Raw Normal View History

class Users::Dossiers::AddSiretController < ApplicationController
def show
2017-06-12 16:12:03 +02:00
@facade = DossierFacades.new params[:dossier_id], current_user.email
2018-01-11 19:04:39 +01:00
raise ActiveRecord::RecordNotFound if !@facade.procedure.individual_with_siret?
2018-01-11 19:04:39 +01:00
@siret = current_user.siret if current_user.siret.present?
rescue ActiveRecord::RecordNotFound
flash.alert = t('errors.messages.dossier_not_found')
redirect_to url_for dossiers_path
end
2017-04-04 15:27:04 +02:00
end