mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-01 02:03:22 +00:00
Update pagination in Admin::UsersController
This commit is contained in:
@@ -93,10 +93,8 @@ module Spree
|
||||
limit(params[:limit] || 100)
|
||||
else
|
||||
@search = Spree::User.ransack(params[:q])
|
||||
@collection = @search.
|
||||
result.
|
||||
page(params[:page]).
|
||||
per(Spree::Config[:admin_products_per_page])
|
||||
@pagy, @collection = pagy(@search.result, items: Spree::Config[:admin_products_per_page])
|
||||
@collection
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user