Sha256: 5f9f969a2895fe6585e9b5e0a78886d02c6b1b9afd38ca88112ac38e34067089
Contents?: true
Size: 627 Bytes
Versions: 4
Compression:
Stored size: 627 Bytes
Contents
module Admin class <%= class_name.pluralize %>Controller < Admin::ApplicationController # To customize the behavior of this controller, # you can overwrite any of the RESTful actions. For example: # # def index # super # @resources = <%= class_name %>. # page(params[:page]). # per(10) # end # Define a custom finder by overriding the `find_resource` method: # def find_resource(param) # <%= class_name %>.find_by!(slug: param) # end # See https://administrate-prototype.herokuapp.com/customizing_controller_actions # for more information end end
Version data entries
4 entries across 4 versions & 1 rubygems