Update return authorizations controller callbacks

This commit is contained in:
Matt-Yorkley
2021-03-21 13:24:43 +00:00
parent 365dc2a49e
commit 6c17680423

View File

@@ -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]}!")