summaryrefslogtreecommitdiff
path: root/billing/app/controllers/customer_controller.rb
diff options
context:
space:
mode:
authorjessib <jessib@riseup.net>2013-07-23 13:41:01 -0700
committerjessib <jessib@riseup.net>2013-07-23 13:41:01 -0700
commit16128d6eb8bb8c7e467c263c3c4f79cf9869ed31 (patch)
tree69af795ece64fa7a79690b081a680175f0b774eb /billing/app/controllers/customer_controller.rb
parentf757a6d519bfa27ef8d70f9bf1745626120225f1 (diff)
Maybe not optimized, but gets working.
Diffstat (limited to 'billing/app/controllers/customer_controller.rb')
-rw-r--r--billing/app/controllers/customer_controller.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/billing/app/controllers/customer_controller.rb b/billing/app/controllers/customer_controller.rb
index 887dbfd..c6cabe6 100644
--- a/billing/app/controllers/customer_controller.rb
+++ b/billing/app/controllers/customer_controller.rb
@@ -1,7 +1,10 @@
class CustomerController < BillingBaseController
before_filter :authorize
def show
+ 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
end
def new