summaryrefslogtreecommitdiff
path: root/billing/config
diff options
context:
space:
mode:
authorazul <azul@riseup.net>2013-09-18 00:27:15 -0700
committerazul <azul@riseup.net>2013-09-18 00:27:15 -0700
commit22e6f781caec701a4d041e0ac183df4c955e89c2 (patch)
treed07f7d83f292951d78a06d81ee06eac81aae5206 /billing/config
parentb7ab1a00f7a8ac15d364a6597701f5fcc891ca78 (diff)
parent7262c7c1d37dd57c102bb41de3a15aa15f720056 (diff)
Merge pull request #83 from jessib/feature/billing_admin_cancel_subscriptions
Feature/billing admin cancel subscriptions
Diffstat (limited to 'billing/config')
-rw-r--r--billing/config/routes.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/billing/config/routes.rb b/billing/config/routes.rb
index 8b7b5bf..e024f43 100644
--- a/billing/config/routes.rb
+++ b/billing/config/routes.rb
@@ -4,7 +4,7 @@ Rails.application.routes.draw do
match 'payments/confirm' => 'payments#confirm', :as => :confirm_payment
resources :users do
resources :payments, :only => [:index]
- resources :subscriptions, :only => [:index, :show]
+ resources :subscriptions, :only => [:index, :show, :destroy]
end
resources :customer, :only => [:new, :edit]
@@ -14,7 +14,7 @@ Rails.application.routes.draw do
match 'customer/show/:id' => 'customer#show', :as => :show_customer
match 'credit_card_info/confirm' => 'credit_card_info#confirm', :as => :confirm_credit_card_info
- resources :subscriptions, :only => [:new, :create, :update, :destroy] # index and show are within users path
+ resources :subscriptions, :only => [:new, :create, :update] # index, show & destroy are within users path
#match 'transactions/:product_id/new' => 'transactions#new', :as => :new_transaction
#match 'transactions/confirm/:product_id' => 'transactions#confirm', :as => :confirm_transaction