Revert "Fix 9 Rubocop violations (Rails/Presence and Rails/RedirectBackOrTo)Fix rubocop violations"

This commit is contained in:
David-OFN-CA
2026-02-26 17:04:21 -05:00
committed by GitHub
parent 2d46676bb4
commit 7922bf7b65
8 changed files with 35 additions and 14 deletions

View File

@@ -80,7 +80,7 @@ module Spree
rescue Spree::Core::GatewayError => e
flash[:error] = e.message.to_s
ensure
redirect_back_or_to(spree.admin_dashboard_path)
redirect_back fallback_location: spree.admin_dashboard_path
end
def resend
@@ -88,7 +88,7 @@ module Spree
flash[:success] = t('admin.orders.order_email_resent')
respond_with(@order) do |format|
format.html { redirect_back_or_to(spree.admin_dashboard_path) }
format.html { redirect_back(fallback_location: spree.admin_dashboard_path) }
end
end