mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-05 22:26:07 +00:00
Fix one rubocop issue
This commit is contained in:
@@ -90,7 +90,9 @@ module Permissions
|
||||
# Any from visible orders, where the product is produced by one of my managed producers
|
||||
def produced_line_items
|
||||
Spree::LineItem.where(order_id: visible_orders.select("DISTINCT spree_orders.id")).
|
||||
supplied_by_any(@permissions.managed_enterprises.is_primary_producer.select("enterprises.id"))
|
||||
supplied_by_any(
|
||||
@permissions.managed_enterprises.is_primary_producer.select("enterprises.id")
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user