summaryrefslogtreecommitdiff
path: root/billing/app/controllers
diff options
context:
space:
mode:
authorjessib <jessib@riseup.net>2013-07-25 11:21:27 -0700
committerjessib <jessib@riseup.net>2013-07-25 11:21:27 -0700
commit3578c13abd86d15ca6310bf5652f4855a8daa1a8 (patch)
tree6c703e82ded7692f50c740f0ae1a9454adbed256 /billing/app/controllers
parent16128d6eb8bb8c7e467c263c3c4f79cf9869ed31 (diff)
Have navigation link to new customer form if user is not already a braintree customer.
Diffstat (limited to 'billing/app/controllers')
-rw-r--r--billing/app/controllers/customer_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/billing/app/controllers/customer_controller.rb b/billing/app/controllers/customer_controller.rb
index c6cabe6..14ea8a7 100644
--- a/billing/app/controllers/customer_controller.rb
+++ b/billing/app/controllers/customer_controller.rb
@@ -4,7 +4,7 @@ class CustomerController < BillingBaseController
customer.with_braintree_data!
@default_cc = customer.default_credit_card #TODO not actually right way
@active_subscription = customer.subscriptions
- @transactions = Braintree::Customer.find(customer.braintree_customer_id).transactions #TODO not actually right way
+ @transactions = customer.braintree_customer.transactions
end
def new