Merge pull request #348 from sgmap/remove_useless_metadata_in_api

ApiControllers: remove useless meta data
This commit is contained in:
LeSim 2017-05-23 11:08:16 +02:00 committed by GitHub
commit 7a434ac88e
2 changed files with 0 additions and 11 deletions

View file

@ -6,9 +6,6 @@ class API::V1::DossiersController < APIController
error code: 401, desc: "Non authorisé"
error code: 404, desc: "Procédure inconnue"
meta champs: {
}
def index
procedure = current_administrateur.procedures.find(params[:procedure_id])
dossiers = procedure.dossiers.where.not(state: :draft).paginate(page: params[:page])
@ -25,10 +22,6 @@ class API::V1::DossiersController < APIController
error code: 401, desc: "Non authorisé"
error code: 404, desc: "Procédure ou dossier inconnu"
meta champs: {
}
def show
procedure = current_administrateur.procedures.find(params[:procedure_id])
dossier = procedure.dossiers.find(params[:id])

View file

@ -5,10 +5,6 @@ class API::V1::ProceduresController < APIController
error code: 401, desc: "Non authorisé"
error code: 404, desc: "Procédure inconnue"
meta champs: {
}
def show
procedure = current_administrateur.procedures.find(params[:id]).decorate