2015-11-17 18:30:28 +01:00
|
|
|
class DemoController < ApplicationController
|
2016-01-07 11:41:03 +01:00
|
|
|
include SmartListing::Helper::ControllerExtensions
|
|
|
|
helper SmartListing::Helper
|
2015-11-17 18:30:28 +01:00
|
|
|
|
|
|
|
def index
|
2016-05-25 14:13:04 +02:00
|
|
|
return redirect_to root_path if Rails.env.production?
|
2016-02-19 15:32:19 +01:00
|
|
|
|
2016-01-07 11:41:03 +01:00
|
|
|
smart_listing_create :procedures,
|
2017-03-22 14:37:06 +01:00
|
|
|
Procedure.where(archived: false, published: true).order("id DESC"),
|
2016-01-07 11:41:03 +01:00
|
|
|
partial: "demo/list",
|
|
|
|
array: true
|
2015-11-17 18:30:28 +01:00
|
|
|
end
|
|
|
|
end
|