fixed false class

This commit is contained in:
2017-12-18 21:04:06 +01:00
parent f6558753f3
commit cf566f5e9d
+1 -1
View File
@@ -23,7 +23,7 @@ class ChargesController < ApplicationController
Stripe::Charge.create(amount: @amount, currency: 'CHF', source: params[:stripeToken], description: 'Initiativspende')
rescue Stripe::CardError => e
flash[:error] = e.message
flash[:danger] = e.message
redirect_to donation_path
end
end