summaryrefslogtreecommitdiff
path: root/billing
diff options
context:
space:
mode:
authorjessib <jessib@riseup.net>2013-07-22 12:29:56 -0700
committerjessib <jessib@riseup.net>2013-07-22 12:29:56 -0700
commit67e75f797f1e057f2984eb134faef4e19af0a356 (patch)
tree7265664c21e14aa870a10f6c503b5651627051b6 /billing
parent3646bfb8f61648a09744bd1e7a250aaa852ad20b (diff)
Slight tweaks so navigation basically should work with billing.
Diffstat (limited to 'billing')
-rw-r--r--billing/app/controllers/credit_card_info_controller.rb9
1 files changed, 8 insertions, 1 deletions
diff --git a/billing/app/controllers/credit_card_info_controller.rb b/billing/app/controllers/credit_card_info_controller.rb
index 99bf5cf..75865fe 100644
--- a/billing/app/controllers/credit_card_info_controller.rb
+++ b/billing/app/controllers/credit_card_info_controller.rb
@@ -1,5 +1,5 @@
class CreditCardInfoController < ApplicationController
- before_filter :authorize
+ before_filter :authorize, :set_user
def edit
@credit_card = Braintree::CreditCard.find(params[:id])
@@ -24,4 +24,11 @@ class CreditCardInfoController < ApplicationController
end
end
+
+ private
+
+ def set_user
+ @user = current_user
+ end
+
end