Sha256: 8bdbb39debc27f067feeb2c5cc8a11e02407fcb88edbbf6fe4e10ca67a441571
Contents?: true
Size: 603 Bytes
Versions: 12
Compression:
Stored size: 603 Bytes
Contents
module Admin class <%= class_name.pluralize %>Controller < Admin::ApplicationController # To customize the behavior of this controller, # simply overwrite any of the RESTful actions. For example: # # def index # super # @resources = <%= class_name %>.all.paginate(10, params[:page]) # 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-docs.herokuapp.com/customizing_controller_actions # for more information end end
Version data entries
12 entries across 12 versions & 1 rubygems