diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 3c85c436c8..9d3737f407 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -28,7 +28,7 @@ Lint/ConstantDefinitionInBlock: Lint/DuplicateBranch: Exclude: # - 'app/helpers/spree/admin/base_helper.rb' - - 'app/models/enterprise.rb' + # - 'app/models/enterprise.rb' - 'app/models/spree/calculator.rb' - 'app/models/spree/preference.rb' - 'app/models/spree/preferences/preferable.rb' diff --git a/app/models/enterprise.rb b/app/models/enterprise.rb index 7f9ab5a965..0d5ad5e4ec 100644 --- a/app/models/enterprise.rb +++ b/app/models/enterprise.rb @@ -369,10 +369,10 @@ class Enterprise < ApplicationRecord :producer_shop # Producer with shopfront and supplies other hubs. when "producer_sells_none" :producer # Producer only supplies through others. - when "non_producer_sells_any" - :hub # Hub selling others products in order cycles. - when "non_producer_sells_own" - :hub # Wholesaler selling through own shopfront? Does this need a separate name or even exist? + when "non_producer_sells_any", "non_producer_sells_own" + # Hub selling others products in order cycles + # Or Wholesaler selling through own shopfront? Does this need a separate name or even exist? + :hub when "non_producer_sells_none" :hub_profile # Hub selling outside the system. end