diff options
author | Azul <azul@leap.se> | 2013-07-11 12:43:53 +0200 |
---|---|---|
committer | Azul <azul@leap.se> | 2013-07-17 10:47:15 +0200 |
commit | 3a0948339984a108ada449c3a5dbbc9086a2af26 (patch) | |
tree | 666eeda8c98a0ba4b14ba78600cc40e205933106 /billing/app/controllers | |
parent | bae22682888c6e656a7c032fe819f4b662ee84ea (diff) |
billing: helper for the typical BraintreeForm
Diffstat (limited to 'billing/app/controllers')
-rw-r--r-- | billing/app/controllers/billing_base_controller.rb | 2 | ||||
-rw-r--r-- | billing/app/controllers/subscriptions_controller.rb | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/billing/app/controllers/billing_base_controller.rb b/billing/app/controllers/billing_base_controller.rb index b7f449c..dc15194 100644 --- a/billing/app/controllers/billing_base_controller.rb +++ b/billing/app/controllers/billing_base_controller.rb @@ -1,6 +1,8 @@ class BillingBaseController < ApplicationController before_filter :assign_user + helper 'billing' + # required for navigation to work. def assign_user @user = current_user diff --git a/billing/app/controllers/subscriptions_controller.rb b/billing/app/controllers/subscriptions_controller.rb index 366a457..38dbff1 100644 --- a/billing/app/controllers/subscriptions_controller.rb +++ b/billing/app/controllers/subscriptions_controller.rb @@ -1,4 +1,4 @@ -class SubscriptionsController < ApplicationController +class SubscriptionsController < BillingBaseController before_filter :authorize before_filter :fetch_subscription, :only => [:show, :destroy] before_filter :confirm_no_active_subscription, :only => [:new, :create] |