From faead11d05a5ada28549c3bb01bf35d6e56f5a6e Mon Sep 17 00:00:00 2001 From: Martin Meyerhoff Date: Mon, 6 Jan 2025 14:42:51 +0100 Subject: [PATCH] Fix Rubocop offense in order state machine --- .rubocop_todo.yml | 1 - core/app/models/spree/core/state_machines/order.rb | 4 +--- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index b4ef66b1821..5bd856f79d9 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -512,7 +512,6 @@ Style/AccessorGrouping: - "core/app/models/spree/order.rb" - "core/lib/generators/spree/dummy/dummy_generator.rb" - "core/lib/spree/core/search/base.rb" - - "core/lib/spree/core/state_machines/order.rb" - "core/lib/spree/core/stock_configuration.rb" # Offense count: 1 diff --git a/core/app/models/spree/core/state_machines/order.rb b/core/app/models/spree/core/state_machines/order.rb index c52e107fe52..691b20e212a 100644 --- a/core/app/models/spree/core/state_machines/order.rb +++ b/core/app/models/spree/core/state_machines/order.rb @@ -10,9 +10,7 @@ def self.included(klass) module ClassMethods attr_accessor :previous_states - attr_writer :next_event_transitions - attr_writer :checkout_steps - attr_writer :removed_transitions + attr_writer :next_event_transitions, :checkout_steps, :removed_transitions def checkout_flow(&block) if block_given?