mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-14 04:04:23 +00:00
Revert "Fix 9 Rubocop violations (Rails/Presence and Rails/RedirectBackOrTo)Fix rubocop violations"
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user