summaryrefslogtreecommitdiff
path: root/billing/app/controllers/customers_controller.rb
diff options
context:
space:
mode:
authorjessib <jessib@leap.se>2013-05-06 12:58:34 -0700
committerAzul <azul@leap.se>2013-07-17 10:47:13 +0200
commit62b32320f38627dad870c7b3157576c48674c42b (patch)
tree3f64557604995d84a1477b7e66f820baffd3ed59 /billing/app/controllers/customers_controller.rb
parentfe0ac266a797523492fe3b2c750e7862f51b152f (diff)
Show single active subscription from user's page, with link to index showing all the user's subscriptions.
Diffstat (limited to 'billing/app/controllers/customers_controller.rb')
-rw-r--r--billing/app/controllers/customers_controller.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/billing/app/controllers/customers_controller.rb b/billing/app/controllers/customers_controller.rb
index 3479448..b0184af 100644
--- a/billing/app/controllers/customers_controller.rb
+++ b/billing/app/controllers/customers_controller.rb
@@ -4,8 +4,7 @@ class CustomersController < BillingBaseController
def show
- @subscriptions = @customer.active_subscriptions(@braintree_data)
-
+ @active_subscription = @customer.subscriptions(@braintree_data)
# UGLY Braintree::ResourceCollection to array.
# might want method
@transactions = []