From 3578c13abd86d15ca6310bf5652f4855a8daa1a8 Mon Sep 17 00:00:00 2001 From: jessib Date: Thu, 25 Jul 2013 11:21:27 -0700 Subject: Have navigation link to new customer form if user is not already a braintree customer. --- billing/app/controllers/customer_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'billing/app/controllers') 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 -- cgit v1.2.3