Sha256: e1f728bf189527545be123e418a7657c4ea1ee6651666f56f253b5d15bf1c8b8
Contents?: true
Size: 626 Bytes
Versions: 2
Compression:
Stored size: 626 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 %>. # 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
administrate-0.5.0 | lib/generators/administrate/dashboard/templates/controller.rb.erb |
administrate-0.4.0 | lib/generators/administrate/dashboard/templates/controller.rb.erb |