From e306a14b20ead63d7b13f6faedee20a28846f0c5 Mon Sep 17 00:00:00 2001 From: Martin Meyerhoff Date: Wed, 20 Nov 2024 15:52:31 +0100 Subject: [PATCH] Chore(Legacy Promotions): Rename decorators If we want to use these decorators with Zeitwerk, their naming scheme has to exchange module name and type. For example, app/decorators/solidus_legacy_promotions/models/line_item_decorator.rb becomes app/decorators/models/solidus/legacy_promotions/line_item_decorator.rb This will eventually allow us to use Zeitwerk for loading decorators. --- .../solidus_admin_adjustments_controller_decorator.rb | 0 .../spree_order_state_machine_decorator.rb | 0 .../solidus_legacy_promotions}/spree_adjustment_decorator.rb | 0 .../spree_calculator_returns_default_refund_amount_decorator.rb | 0 .../solidus_legacy_promotions}/spree_line_item_decorator.rb | 0 .../solidus_legacy_promotions}/spree_order_decorator.rb | 0 .../solidus_legacy_promotions}/spree_order_updater_decorator.rb | 0 .../solidus_legacy_promotions}/spree_product_decorator.rb | 0 .../solidus_legacy_promotions}/spree_shipment_decorator.rb | 0 9 files changed, 0 insertions(+), 0 deletions(-) rename legacy_promotions/app/decorators/{solidus_legacy_promotions/controllers/solidus_admin => controllers/solidus_legacy_promotions}/solidus_admin_adjustments_controller_decorator.rb (100%) rename legacy_promotions/app/decorators/{solidus_legacy_promotions/lib => lib/solidus_legacy_promotions}/spree_order_state_machine_decorator.rb (100%) rename legacy_promotions/app/decorators/{solidus_legacy_promotions/models => models/solidus_legacy_promotions}/spree_adjustment_decorator.rb (100%) rename legacy_promotions/app/decorators/{solidus_legacy_promotions/models => models/solidus_legacy_promotions}/spree_calculator_returns_default_refund_amount_decorator.rb (100%) rename legacy_promotions/app/decorators/{solidus_legacy_promotions/models => models/solidus_legacy_promotions}/spree_line_item_decorator.rb (100%) rename legacy_promotions/app/decorators/{solidus_legacy_promotions/models => models/solidus_legacy_promotions}/spree_order_decorator.rb (100%) rename legacy_promotions/app/decorators/{solidus_legacy_promotions/models => models/solidus_legacy_promotions}/spree_order_updater_decorator.rb (100%) rename legacy_promotions/app/decorators/{solidus_legacy_promotions/models => models/solidus_legacy_promotions}/spree_product_decorator.rb (100%) rename legacy_promotions/app/decorators/{solidus_legacy_promotions/models => models/solidus_legacy_promotions}/spree_shipment_decorator.rb (100%) diff --git a/legacy_promotions/app/decorators/solidus_legacy_promotions/controllers/solidus_admin/solidus_admin_adjustments_controller_decorator.rb b/legacy_promotions/app/decorators/controllers/solidus_legacy_promotions/solidus_admin_adjustments_controller_decorator.rb similarity index 100% rename from legacy_promotions/app/decorators/solidus_legacy_promotions/controllers/solidus_admin/solidus_admin_adjustments_controller_decorator.rb rename to legacy_promotions/app/decorators/controllers/solidus_legacy_promotions/solidus_admin_adjustments_controller_decorator.rb diff --git a/legacy_promotions/app/decorators/solidus_legacy_promotions/lib/spree_order_state_machine_decorator.rb b/legacy_promotions/app/decorators/lib/solidus_legacy_promotions/spree_order_state_machine_decorator.rb similarity index 100% rename from legacy_promotions/app/decorators/solidus_legacy_promotions/lib/spree_order_state_machine_decorator.rb rename to legacy_promotions/app/decorators/lib/solidus_legacy_promotions/spree_order_state_machine_decorator.rb diff --git a/legacy_promotions/app/decorators/solidus_legacy_promotions/models/spree_adjustment_decorator.rb b/legacy_promotions/app/decorators/models/solidus_legacy_promotions/spree_adjustment_decorator.rb similarity index 100% rename from legacy_promotions/app/decorators/solidus_legacy_promotions/models/spree_adjustment_decorator.rb rename to legacy_promotions/app/decorators/models/solidus_legacy_promotions/spree_adjustment_decorator.rb diff --git a/legacy_promotions/app/decorators/solidus_legacy_promotions/models/spree_calculator_returns_default_refund_amount_decorator.rb b/legacy_promotions/app/decorators/models/solidus_legacy_promotions/spree_calculator_returns_default_refund_amount_decorator.rb similarity index 100% rename from legacy_promotions/app/decorators/solidus_legacy_promotions/models/spree_calculator_returns_default_refund_amount_decorator.rb rename to legacy_promotions/app/decorators/models/solidus_legacy_promotions/spree_calculator_returns_default_refund_amount_decorator.rb diff --git a/legacy_promotions/app/decorators/solidus_legacy_promotions/models/spree_line_item_decorator.rb b/legacy_promotions/app/decorators/models/solidus_legacy_promotions/spree_line_item_decorator.rb similarity index 100% rename from legacy_promotions/app/decorators/solidus_legacy_promotions/models/spree_line_item_decorator.rb rename to legacy_promotions/app/decorators/models/solidus_legacy_promotions/spree_line_item_decorator.rb diff --git a/legacy_promotions/app/decorators/solidus_legacy_promotions/models/spree_order_decorator.rb b/legacy_promotions/app/decorators/models/solidus_legacy_promotions/spree_order_decorator.rb similarity index 100% rename from legacy_promotions/app/decorators/solidus_legacy_promotions/models/spree_order_decorator.rb rename to legacy_promotions/app/decorators/models/solidus_legacy_promotions/spree_order_decorator.rb diff --git a/legacy_promotions/app/decorators/solidus_legacy_promotions/models/spree_order_updater_decorator.rb b/legacy_promotions/app/decorators/models/solidus_legacy_promotions/spree_order_updater_decorator.rb similarity index 100% rename from legacy_promotions/app/decorators/solidus_legacy_promotions/models/spree_order_updater_decorator.rb rename to legacy_promotions/app/decorators/models/solidus_legacy_promotions/spree_order_updater_decorator.rb diff --git a/legacy_promotions/app/decorators/solidus_legacy_promotions/models/spree_product_decorator.rb b/legacy_promotions/app/decorators/models/solidus_legacy_promotions/spree_product_decorator.rb similarity index 100% rename from legacy_promotions/app/decorators/solidus_legacy_promotions/models/spree_product_decorator.rb rename to legacy_promotions/app/decorators/models/solidus_legacy_promotions/spree_product_decorator.rb diff --git a/legacy_promotions/app/decorators/solidus_legacy_promotions/models/spree_shipment_decorator.rb b/legacy_promotions/app/decorators/models/solidus_legacy_promotions/spree_shipment_decorator.rb similarity index 100% rename from legacy_promotions/app/decorators/solidus_legacy_promotions/models/spree_shipment_decorator.rb rename to legacy_promotions/app/decorators/models/solidus_legacy_promotions/spree_shipment_decorator.rb