From 6c17680423fe70d7b1d8a55ea6809ed9af42f642 Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Sun, 21 Mar 2021 13:24:43 +0000 Subject: [PATCH] Update return authorizations controller callbacks --- .../spree/admin/return_authorizations_controller.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/controllers/spree/admin/return_authorizations_controller.rb b/app/controllers/spree/admin/return_authorizations_controller.rb index ac229acf83..094dd37d4a 100644 --- a/app/controllers/spree/admin/return_authorizations_controller.rb +++ b/app/controllers/spree/admin/return_authorizations_controller.rb @@ -3,8 +3,7 @@ module Spree class ReturnAuthorizationsController < ::Admin::ResourceController belongs_to 'spree/order', find_by: :number - update.after :associate_inventory_units - create.after :associate_inventory_units + after_action :associate_inventory_units, only: [:create, :update] def fire @return_authorization.public_send("#{params[:e]}!")