Skip to content

Commit

Permalink
Remove unused action on the before_action callback.
Browse files Browse the repository at this point in the history
```
The update action could not be found for the :load_order
callback on Spree::Admin::OrdersController, but it is listed in the controller's
:only option.

Raising for missing callback actions is a new default in Rails 7.1, if you'd
like to turn this off you can delete the option from the environment configurations
or set `config.action_pack.raise_on_missing_callback_actions` to `false`.
```
  • Loading branch information
peterberkenbosch committed Aug 26, 2023
1 parent 83aef3b commit bf51cab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/app/controllers/spree/admin/orders_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module Spree
module Admin
class OrdersController < Spree::Admin::BaseController
before_action :initialize_order_events
before_action :load_order, only: [:edit, :update, :complete, :advance, :cancel, :resume, :approve, :resend, :unfinalize_adjustments, :finalize_adjustments, :cart, :confirm]
before_action :load_order, only: [:edit, :complete, :advance, :cancel, :resume, :approve, :resend, :unfinalize_adjustments, :finalize_adjustments, :cart, :confirm]
around_action :lock_order, only: [:update, :advance, :complete, :confirm, :cancel, :resume, :approve, :resend]

rescue_from Spree::Order::InsufficientStock, with: :insufficient_stock_error
Expand Down

0 comments on commit bf51cab

Please sign in to comment.