From 60b491691bb1e02387d0d04e56d534dac2778ee0 Mon Sep 17 00:00:00 2001 From: Martin Meyerhoff Date: Fri, 9 Jun 2023 15:51:14 +0200 Subject: [PATCH] Remove Spree::Adjustment.return_authorization scope 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. --- core/app/models/spree/adjustment.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/app/models/spree/adjustment.rb b/core/app/models/spree/adjustment.rb index dcc48c1ec1b..836a3650d5d 100644 --- a/core/app/models/spree/adjustment.rb +++ b/core/app/models/spree/adjustment.rb @@ -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