From 3a0948339984a108ada449c3a5dbbc9086a2af26 Mon Sep 17 00:00:00 2001 From: Azul Date: Thu, 11 Jul 2013 12:43:53 +0200 Subject: billing: helper for the typical BraintreeForm --- billing/app/controllers/billing_base_controller.rb | 2 ++ billing/app/controllers/subscriptions_controller.rb | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'billing/app/controllers') 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] -- cgit v1.2.3