Fix credit card controller by adding a rescue for wrong arguments passed in params

This commit is contained in:
luisramos0
2018-11-13 15:28:10 +00:00
parent 57efc36448
commit a234308a06

View File

@@ -26,6 +26,8 @@ module Spree
else
update_failed
end
rescue ArgumentError => e
update_failed
end
def destroy