From a234308a06da10b419f35c2f82fbd2933c17070b Mon Sep 17 00:00:00 2001 From: luisramos0 Date: Tue, 13 Nov 2018 15:28:10 +0000 Subject: [PATCH] Fix credit card controller by adding a rescue for wrong arguments passed in params --- app/controllers/spree/credit_cards_controller.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controllers/spree/credit_cards_controller.rb b/app/controllers/spree/credit_cards_controller.rb index 9dd129bacf..36abcf71b9 100644 --- a/app/controllers/spree/credit_cards_controller.rb +++ b/app/controllers/spree/credit_cards_controller.rb @@ -26,6 +26,8 @@ module Spree else update_failed end + rescue ArgumentError => e + update_failed end def destroy