Don’t rely on a decorator for ProcedureSerializer#geographic_information

This commit is contained in:
Paul Chavard 2018-10-22 19:24:38 +02:00
parent 2e7a4a4098
commit 53a261f424
4 changed files with 5 additions and 12 deletions

View file

@ -2,7 +2,7 @@ class API::V1::ProceduresController < APIController
before_action :fetch_procedure_and_check_token
def show
render json: { procedure: ProcedureSerializer.new(@procedure.decorate).as_json }
render json: { procedure: ProcedureSerializer.new(@procedure).as_json }
end
private