From 4a334ce6f6163c2bfa11f3e2146b9d0b765b6d7b Mon Sep 17 00:00:00 2001 From: jessib Date: Tue, 26 Mar 2013 12:45:11 -0700 Subject: Adding some links, which will be removed. --- billing/app/controllers/billing_base_controller.rb | 9 +++++++++ billing/app/controllers/customer_controller.rb | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 billing/app/controllers/billing_base_controller.rb (limited to 'billing/app') diff --git a/billing/app/controllers/billing_base_controller.rb b/billing/app/controllers/billing_base_controller.rb new file mode 100644 index 0000000..b7f449c --- /dev/null +++ b/billing/app/controllers/billing_base_controller.rb @@ -0,0 +1,9 @@ +class BillingBaseController < ApplicationController + before_filter :assign_user + + # required for navigation to work. + def assign_user + @user = current_user + end + +end diff --git a/billing/app/controllers/customer_controller.rb b/billing/app/controllers/customer_controller.rb index e6bf76b..8b4b124 100644 --- a/billing/app/controllers/customer_controller.rb +++ b/billing/app/controllers/customer_controller.rb @@ -1,4 +1,4 @@ -class CustomerController < ApplicationController +class CustomerController < BillingBaseController before_filter :authorize def new -- cgit v1.2.3