demarches-normaliennes/app/controllers/api/v1/procedures_controller.rb
2015-12-21 17:51:49 +01:00

12 lines
292 B
Ruby

class API::V1::ProceduresController < APIController
def show
@procedure = current_administrateur.procedures.find(params[:id]).decorate
render json: @procedure
rescue ActiveRecord::RecordNotFound => e
Rails.logger.error(e.message)
render json: {}, status: 404
end
end