mirror of
https://github.com/danbee/danbarberphoto
synced 2025-03-04 08:49:07 +00:00
22 lines
592 B
Ruby
22 lines
592 B
Ruby
module Admin
|
|
class CategoriesController < Admin::ApplicationController
|
|
# To customize the behavior of this controller,
|
|
# you can overwrite any of the RESTful actions. For example:
|
|
#
|
|
# def index
|
|
# super
|
|
# @resources = Category.
|
|
# page(params[:page]).
|
|
# per(10)
|
|
# end
|
|
|
|
# Define a custom finder by overriding the `find_resource` method:
|
|
# def find_resource(param)
|
|
# Category.find_by!(slug: param)
|
|
# end
|
|
|
|
# See https://administrate-prototype.herokuapp.com/customizing_controller_actions
|
|
# for more information
|
|
end
|
|
end
|