diff options
author | jessib <jessib@leap.se> | 2013-03-26 12:45:11 -0700 |
---|---|---|
committer | Azul <azul@leap.se> | 2013-07-17 10:47:12 +0200 |
commit | 4a334ce6f6163c2bfa11f3e2146b9d0b765b6d7b (patch) | |
tree | 4dfb6802dfe7f42a61579ec5bd70a18fa5f8ccab /billing/app | |
parent | dbd09966553e2fa64211b89f8fae64ddd1e822ca (diff) |
Adding some links, which will be removed.
Diffstat (limited to 'billing/app')
-rw-r--r-- | billing/app/controllers/billing_base_controller.rb | 9 | ||||
-rw-r--r-- | billing/app/controllers/customer_controller.rb | 2 |
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 |