Skip to content

Commit

Permalink
adjustments missing callback action bug fix (#323)
Browse files Browse the repository at this point in the history
AbstractController::ActionNotFound (The toggle_state action could not be found for the :load_resource
callback on Spree::Admin::AdjustmentsController, 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_controller.raise_on_missing_callback_actions` to `false`.
):
  • Loading branch information
rahul2103 authored Jul 31, 2024
1 parent 0cc0c0e commit afae277
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/spree/admin/adjustments_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class AdjustmentsController < ResourceController
destroy.after :update_totals
update.after :update_totals

skip_before_action :load_resource, only: [:toggle_state, :edit, :update, :destroy]
skip_before_action :load_resource, only: [:edit, :update, :destroy]

before_action :find_adjustment, only: [:destroy, :edit, :update]

Expand Down

0 comments on commit afae277

Please sign in to comment.