Add a sort order to the demo procedures list

This commit is contained in:
gregoirenovel 2017-03-22 14:37:06 +01:00
parent 5910d28a02
commit 458f557c93

View file

@ -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