diff --git a/lib/generators/administrate/dashboard/templates/controller.rb.erb b/lib/generators/administrate/dashboard/templates/controller.rb.erb index 792ed91d88..0331c47ab7 100644 --- a/lib/generators/administrate/dashboard/templates/controller.rb.erb +++ b/lib/generators/administrate/dashboard/templates/controller.rb.erb @@ -4,8 +4,8 @@ module Admin # simply overwrite any of the RESTful actions. For example: # # def index - # super - # @resources = <%= class_name %>.all.paginate(10, params[:page]) + @ @resources = get_resource_index.includes(:employer, :employer_location).page(params[:page]).per(records_per_page) + # render_index # end # Define a custom finder by overriding the `find_resource` method: