Skip to content

Commit

Permalink
Fix Rubocop offense in order state machine
Browse files Browse the repository at this point in the history
  • Loading branch information
mamhoff committed Jan 9, 2025
1 parent 7b64443 commit faead11
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions core/app/models/spree/core/state_machines/order.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down

0 comments on commit faead11

Please sign in to comment.