lib/administrate/base_controller.rb in administrate-base_controller-0.6.0 vs lib/administrate/base_controller.rb in administrate-base_controller-0.7.0
- old
+ new
@@ -4,10 +4,10 @@
module BaseController
def index
resources = index_resources
resources = apply_collection_includes(resources)
resources = order.apply(resources)
- resources = resources.page(params[:page]).per(records_per_page)
+ resources = resources.page(params[:_page]).per(records_per_page)
respond_to do |format|
format.json { render_index_json(resources) }
format.any { render_index_any(resources, format: format) }
end