diff options
author | jessib <jessib@leap.se> | 2013-05-06 12:58:34 -0700 |
---|---|---|
committer | Azul <azul@leap.se> | 2013-07-17 10:47:13 +0200 |
commit | 62b32320f38627dad870c7b3157576c48674c42b (patch) | |
tree | 3f64557604995d84a1477b7e66f820baffd3ed59 /billing/app/controllers/customers_controller.rb | |
parent | fe0ac266a797523492fe3b2c750e7862f51b152f (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.rb | 3 |
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 = [] |