add comment for before_action

This commit is contained in:
Andy Brett
2021-05-18 10:42:19 -07:00
parent 5917accdd2
commit 5169ee91ea

View File

@@ -9,6 +9,9 @@ module Spree
before_action :load_payment, only: [:fire, :show]
before_action :load_data
before_action :can_transition_to_payment
# We ensure that items are in stock before all screens if the order is in the Payment state.
# This way, we don't allow someone to enter credit card details for an order only to be told
# that it can't be processed.
before_action :ensure_sufficient_stock_lines
respond_to :html