summaryrefslogtreecommitdiff
path: root/billing/app
diff options
context:
space:
mode:
Diffstat (limited to 'billing/app')
-rw-r--r--billing/app/controllers/billing_base_controller.rb9
-rw-r--r--billing/app/controllers/customer_controller.rb2
2 files changed, 10 insertions, 1 deletions
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