From fd595b156d88532d029940beec5ce34884d12a90 Mon Sep 17 00:00:00 2001 From: Cesar Carruitero Date: Tue, 30 Oct 2018 14:42:28 -0500 Subject: [PATCH] remove unused routes and actions for return authorizations --- .../controllers/spree/api/return_authorizations_controller.rb | 2 +- api/config/routes.rb | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/api/app/controllers/spree/api/return_authorizations_controller.rb b/api/app/controllers/spree/api/return_authorizations_controller.rb index 18ca63dc909..9aeacad5b27 100644 --- a/api/app/controllers/spree/api/return_authorizations_controller.rb +++ b/api/app/controllers/spree/api/return_authorizations_controller.rb @@ -4,7 +4,7 @@ module Spree module Api class ReturnAuthorizationsController < Spree::Api::BaseController before_action :load_order - around_action :lock_order, only: [:create, :update, :destroy, :add, :receive, :cancel] + around_action :lock_order, only: [:create, :update, :destroy, :cancel] rescue_from Spree::Order::InsufficientStock, with: :insufficient_stock_error diff --git a/api/config/routes.rb b/api/config/routes.rb index 1b4b3d37aa3..ea13cfefdd0 100644 --- a/api/config/routes.rb +++ b/api/config/routes.rb @@ -35,9 +35,7 @@ resources :return_authorizations do member do - put :add put :cancel - put :receive end end end