2015-12-21 17:51:49 +01:00
|
|
|
class API::V1::ProceduresController < APIController
|
2016-02-02 18:11:44 +01:00
|
|
|
def show
|
2015-12-21 17:51:49 +01:00
|
|
|
@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
|