mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Fix a rubocop issue in spree/api/products_controller
This commit is contained in:
@@ -63,7 +63,9 @@ module Spree
|
||||
authorize! :read, Spree::Product
|
||||
|
||||
@products = product_scope.
|
||||
ransack(params[:q]).result.managed_by(current_api_user).page(params[:page]).per(params[:per_page])
|
||||
ransack(params[:q]).result.
|
||||
managed_by(current_api_user).
|
||||
page(params[:page]).per(params[:per_page])
|
||||
respond_with(@products, default_template: :index)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user