mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-29 21:17:17 +00:00
Comment on ABC style
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class EnterpriseBuilder < DfcBuilder
|
||||
def self.enterprise(enterprise)
|
||||
def self.enterprise(enterprise) # rubocop:disable Metrics/AbcSize
|
||||
# The ABC size of this method should shrink when our custom attributes are
|
||||
# in the DFC standard.
|
||||
|
||||
variants = enterprise.supplied_variants.to_a
|
||||
catalog_items = variants.map(&method(:catalog_item))
|
||||
supplied_products = catalog_items.map(&:product)
|
||||
|
||||
Reference in New Issue
Block a user