From c3c2a532ab6ff7637141238666c0ce88f8238652 Mon Sep 17 00:00:00 2001 From: erik Date: Wed, 22 Jun 2011 17:33:42 -0700 Subject: [PATCH] minor tweaks --- app/controllers/api/donations_controller.rb | 1 + app/controllers/api/users_controller.rb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/api/donations_controller.rb b/app/controllers/api/donations_controller.rb index 85bde64bb..8575f3a83 100644 --- a/app/controllers/api/donations_controller.rb +++ b/app/controllers/api/donations_controller.rb @@ -34,6 +34,7 @@ def card if purchase.save arr[:success] = "Congratulations! You have donated to the pitch" arr[:id] = d.id + arr[:donation] = { :amount => donation_amount, :processing_fee => spotus_amount, :total_amount => donation_amount * (1+SpotusDonation::SPOTUS_TITHE) } else arr[:errors] = purchase.errors.full_messages end diff --git a/app/controllers/api/users_controller.rb b/app/controllers/api/users_controller.rb index 024a8d589..8d8443124 100644 --- a/app/controllers/api/users_controller.rb +++ b/app/controllers/api/users_controller.rb @@ -35,5 +35,5 @@ def create return end end - +ov end