2015-09-23 19:20:03 +02:00
|
|
|
class Users::SiretController < UsersController
|
2015-09-23 16:56:30 +02:00
|
|
|
def index
|
|
|
|
@procedure = Procedure.find(params['procedure_id'])
|
2015-10-08 11:22:55 +02:00
|
|
|
@siret = current_user.siret
|
2015-09-23 16:56:30 +02:00
|
|
|
rescue ActiveRecord::RecordNotFound
|
|
|
|
error_procedure
|
|
|
|
end
|
|
|
|
|
|
|
|
def error_procedure
|
|
|
|
render :file => "#{Rails.root}/public/404_procedure_not_found.html", :status => 404
|
|
|
|
end
|
|
|
|
end
|