2015-11-20 18:14:52 +01:00
|
|
|
class Users::ProcedureController < UsersController
|
|
|
|
def index
|
2015-11-27 10:39:05 +01:00
|
|
|
@procedure = Procedure.where(archived: false).find(params[:procedure_id])
|
2015-11-20 18:14:52 +01:00
|
|
|
@siret = params[:siret] || current_user.siret
|
|
|
|
rescue ActiveRecord::RecordNotFound
|
|
|
|
error_procedure
|
|
|
|
end
|
|
|
|
|
|
|
|
def error_procedure
|
|
|
|
render :file => "#{Rails.root}/public/404_procedure_not_found.html", :status => 404
|
|
|
|
end
|
|
|
|
end
|