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-01-07 11:41:03 +01:00
|
|
|
smart_listing_create :procedures,
|
|
|
|
Procedure.where(archived: false),
|
|
|
|
partial: "demo/list",
|
|
|
|
array: true
|
2015-11-17 18:30:28 +01:00
|
|
|
end
|
|
|
|
end
|