demarches-normaliennes/app/controllers/demo_controller.rb
2016-02-19 15:32:19 +01:00

13 lines
379 B
Ruby

class DemoController < ApplicationController
include SmartListing::Helper::ControllerExtensions
helper SmartListing::Helper
def index
return root_path if Rails.env.production?
smart_listing_create :procedures,
Procedure.where(archived: false),
partial: "demo/list",
array: true
end
end