Merge pull request #45 from sgmap/fix-demo-sort

Add a sort order to the demo procedures list
This commit is contained in:
Mathieu Magnin 2017-03-27 10:07:17 +02:00 committed by GitHub
commit d9cb85d8a4

View file

@ -6,7 +6,7 @@ class DemoController < ApplicationController
return redirect_to root_path if Rails.env.production? return redirect_to root_path if Rails.env.production?
smart_listing_create :procedures, smart_listing_create :procedures,
Procedure.where(archived: false, published: true), Procedure.where(archived: false, published: true).order("id DESC"),
partial: "demo/list", partial: "demo/list",
array: true array: true
end end