From 458f557c9350213b74b4b151c4eb7423b73eb099 Mon Sep 17 00:00:00 2001 From: gregoirenovel Date: Wed, 22 Mar 2017 14:37:06 +0100 Subject: [PATCH 1/2] Add a sort order to the demo procedures list --- app/controllers/demo_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/demo_controller.rb b/app/controllers/demo_controller.rb index 89f1da027..5933c5735 100644 --- a/app/controllers/demo_controller.rb +++ b/app/controllers/demo_controller.rb @@ -6,7 +6,7 @@ class DemoController < ApplicationController return redirect_to root_path if Rails.env.production? smart_listing_create :procedures, - Procedure.where(archived: false, published: true), + Procedure.where(archived: false, published: true).order("id DESC"), partial: "demo/list", array: true end From 7d9c8db659c7241f65749ab9331148d31c09eb94 Mon Sep 17 00:00:00 2001 From: gregoirenovel Date: Mon, 27 Mar 2017 11:36:37 +0200 Subject: [PATCH 2/2] Update the apipie_examples JSON so that it shows champs_private --- doc/apipie_examples.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/doc/apipie_examples.json b/doc/apipie_examples.json index 968788243..e14456d96 100644 --- a/doc/apipie_examples.json +++ b/doc/apipie_examples.json @@ -86,6 +86,18 @@ } } ], + "champs_private": [ + { + "value": null, + "type_de_champ": { + "id": 1, + "libelle": "Description privée", + "type_champ": "text", + "order_place": 0, + "description": "description privée" + } + } + ], "pieces_justificatives": [ { "url": null,