diff --git a/.rubocop_manual_todo.yml b/.rubocop_manual_todo.yml index b07e86480a..94fdd0bd31 100644 --- a/.rubocop_manual_todo.yml +++ b/.rubocop_manual_todo.yml @@ -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 diff --git a/app/models/product_import/product_importer.rb b/app/models/product_import/product_importer.rb index 70b5d20ee6..901db7087e 100644 --- a/app/models/product_import/product_importer.rb +++ b/app/models/product_import/product_importer.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