Fix one rubocop issue

This commit is contained in:
Luis Ramos
2020-03-06 12:27:17 +00:00
parent 7c367da904
commit 8909238682

View File

@@ -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