Skip to content

Commit

Permalink
Remove Spree::Adjustment.return_authorization scope
Browse files Browse the repository at this point in the history
There is no code path that creates adjustments from return
authorizations (since a long time).

This line was introduced without a lot of context in 2013, and there is
nothing in the current codebase that warrants this scope.
  • Loading branch information
mamhoff authored and elia committed Sep 25, 2023
1 parent b00ae25 commit 60b4916
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/app/models/spree/adjustment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ class Adjustment < Spree::Base
scope :is_included, -> { where(included: true) }
scope :additional, -> { where(included: false) }

singleton_class.deprecate :return_authorization, deprecator: Spree::Deprecation

extend DisplayMoney
money_methods :amount

Expand Down

0 comments on commit 60b4916

Please sign in to comment.