21 lines
597 B
Ruby
21 lines
597 B
Ruby
module Manager
|
|
class ProceduresController < Manager::ApplicationController
|
|
# To customize the behavior of this controller,
|
|
# simply overwrite any of the RESTful actions. For example:
|
|
#
|
|
# def index
|
|
# super
|
|
# @resources = Procedure.
|
|
# page(params[:page]).
|
|
# per(10)
|
|
# end
|
|
|
|
# Define a custom finder by overriding the `find_resource` method:
|
|
# def find_resource(param)
|
|
# Procedure.find_by!(slug: param)
|
|
# end
|
|
|
|
# See https://administrate-prototype.herokuapp.com/customizing_controller_actions
|
|
# for more information
|
|
end
|
|
end
|