From a00470d0c046774edc94ef01ef9bc590e8d58ac9 Mon Sep 17 00:00:00 2001 From: jessib Date: Tue, 7 May 2013 11:32:11 -0700 Subject: Display 3 most recent transactions on a customer's page, with a link to all of their transactions. --- billing/app/controllers/customers_controller.rb | 6 ------ 1 file changed, 6 deletions(-) (limited to 'billing/app/controllers/customers_controller.rb') diff --git a/billing/app/controllers/customers_controller.rb b/billing/app/controllers/customers_controller.rb index b0184af..2532334 100644 --- a/billing/app/controllers/customers_controller.rb +++ b/billing/app/controllers/customers_controller.rb @@ -5,12 +5,6 @@ class CustomersController < BillingBaseController def show @active_subscription = @customer.subscriptions(@braintree_data) - # UGLY Braintree::ResourceCollection to array. - # might want method - @transactions = [] - @braintree_data.transactions.each do |transaction| - @transactions << transaction - end end def new -- cgit v1.2.3