diff options
author | jessib <jessib@leap.se> | 2013-05-02 10:53:42 -0700 |
---|---|---|
committer | Azul <azul@leap.se> | 2013-07-17 10:47:13 +0200 |
commit | fe0ac266a797523492fe3b2c750e7862f51b152f (patch) | |
tree | cf83a73fd7e6f1361a088ee080db281445c26f64 /billing/app/controllers/subscriptions_controller.rb | |
parent | 7eab7e33730e12eeb460d2b3965a8712320aff54 (diff) |
Added notices to redirects.
Diffstat (limited to 'billing/app/controllers/subscriptions_controller.rb')
-rw-r--r-- | billing/app/controllers/subscriptions_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/billing/app/controllers/subscriptions_controller.rb b/billing/app/controllers/subscriptions_controller.rb index 9735527..b248be5 100644 --- a/billing/app/controllers/subscriptions_controller.rb +++ b/billing/app/controllers/subscriptions_controller.rb @@ -7,7 +7,7 @@ class SubscriptionsController < ApplicationController customer = Customer.find_by_user_id(current_user.id) if subscription = customer.single_subscription - redirect_to subscription_path(subscription.id) + redirect_to subscription_path(subscription.id), :notice => 'You already have an active subscription' else credit_card = customer.default_credit_card #safe to assume default? @payment_method_token = credit_card.token |