2024-04-29 00:17:15 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2022-05-16 12:20:24 +02:00
|
|
|
module Manager
|
|
|
|
class DubiousProceduresController < Manager::ApplicationController
|
|
|
|
def index
|
|
|
|
raw_resources = DubiousProcedure.all
|
|
|
|
resources = Kaminari.paginate_array(raw_resources).page(params[:_page]).per(records_per_page)
|
|
|
|
page = Administrate::Page::Collection.new(dashboard)
|
|
|
|
|
|
|
|
render locals: {
|
|
|
|
resources: resources,
|
|
|
|
page: page,
|
2022-11-14 22:56:24 +01:00
|
|
|
show_search_bar: false,
|
|
|
|
search_term: nil
|
2022-05-16 12:20:24 +02:00
|
|
|
}
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|