mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Fix long lines
This commit is contained in:
@@ -59,7 +59,6 @@ Layout/LineLength:
|
||||
- app/models/enterprise_role.rb
|
||||
- app/models/inventory_item.rb
|
||||
- app/models/product_import/entry_processor.rb
|
||||
- app/models/product_import/product_importer.rb
|
||||
- app/models/product_import/spreadsheet_entry.rb
|
||||
- app/models/product_import/unit_converter.rb
|
||||
- app/models/proxy_order.rb
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# and begins the processing of the spreadsheet entries by the other product import classes.
|
||||
# As spreadsheets can contain any number of entries (1000+), the import is split into smaller chunks
|
||||
# of 100 items, and processed sequentially over a number of requests to avoid server timeouts.
|
||||
# The various bits of collated information such as file upload status, per-item errors or user feedback
|
||||
# The various bits of collated info such as file upload status, per-item errors or user feedback
|
||||
# on the saving process are made available to the controller through this object.
|
||||
|
||||
require 'roo'
|
||||
@@ -59,7 +59,8 @@ module ProductImport
|
||||
|
||||
def product_field_errors?
|
||||
@entries.each do |entry|
|
||||
return true if entry.errors.messages.value?([I18n.t('admin.product_import.model.not_updatable')])
|
||||
return true if entry.errors.messages.
|
||||
value?([I18n.t('admin.product_import.model.not_updatable')])
|
||||
end
|
||||
false
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user