mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Fix rubocop issues
This commit is contained in:
@@ -71,7 +71,10 @@ module Permissions
|
||||
def produced_line_items
|
||||
Spree::LineItem.where(order_id: visible_orders.select(:id)).
|
||||
joins(:product).
|
||||
where(spree_products: { supplier_id: @permissions.managed_enterprises.is_primary_producer.select("enterprises.id") })
|
||||
where(spree_products:
|
||||
{
|
||||
supplier_id: @permissions.managed_enterprises.is_primary_producer.select("enterprises.id")
|
||||
})
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -148,7 +148,8 @@ module OpenFoodNetwork
|
||||
Enterprise.scoped
|
||||
else
|
||||
Enterprise.where(
|
||||
id: managed_enterprises.select("enterprises.id") | related_enterprises_granting(permission)
|
||||
id: managed_enterprises.select("enterprises.id") |
|
||||
related_enterprises_granting(permission)
|
||||
)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user