Merge pull request #45 from sgmap/fix-demo-sort
Add a sort order to the demo procedures list
This commit is contained in:
commit
d9cb85d8a4
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue