summaryrefslogtreecommitdiff
path: root/engines/billing/app/controllers/subscriptions_controller.rb
diff options
context:
space:
mode:
authorclaucece <soficeli0@gmail.com>2015-09-23 23:57:44 -0500
committerclaucece <soficeli0@gmail.com>2015-10-05 22:39:31 -0500
commit577c1f3e92040ab79fcd67b818c7dc8531aaa211 (patch)
tree56698cbde7812d5e3edbf1a1adcc15f384b3cd92 /engines/billing/app/controllers/subscriptions_controller.rb
parent5a4f0fa64d36df1d60bdd693580e10ce55949b6a (diff)
add subs_index and start show
Diffstat (limited to 'engines/billing/app/controllers/subscriptions_controller.rb')
-rw-r--r--engines/billing/app/controllers/subscriptions_controller.rb9
1 files changed, 7 insertions, 2 deletions
diff --git a/engines/billing/app/controllers/subscriptions_controller.rb b/engines/billing/app/controllers/subscriptions_controller.rb
index dda328a..65db21b 100644
--- a/engines/billing/app/controllers/subscriptions_controller.rb
+++ b/engines/billing/app/controllers/subscriptions_controller.rb
@@ -7,7 +7,12 @@ class SubscriptionsController < BillingBaseController
end
def show
- @subscription = Braintree::Plan.all.find params[:subscription_id]
+ @subscriptions = Braintree::Plan.all
+ @subscriptions = Braintree::Plan.all.find params[:subscription_id]
+ end
+
+ def search
+ @subscription = Braintree::Subscription.search params[:status]
end
def new
@@ -95,7 +100,7 @@ private
end
def destroy
- @result = Braintree::Subscription.cancel params[:id]
+ @subscriptions = Braintree::Subscription.cancel params[:id]
end