Merge pull request #8679 from Matt-Yorkley/drop-jquery-ujs

Drop jquery_ujs
This commit is contained in:
Filipe
2022-01-17 16:30:25 +00:00
committed by GitHub
7 changed files with 20 additions and 9 deletions

View File

@@ -54,10 +54,11 @@ module Spree
else
flash[:error] = I18n.t(:card_could_not_be_removed)
end
redirect_to spree.account_path(anchor: 'cards')
head :ok
rescue Stripe::CardError
flash[:error] = I18n.t(:card_could_not_be_removed)
redirect_to spree.account_path(anchor: 'cards')
head :unprocessable_entity
end
private