Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

fix nil error

  • Loading branch information...
commit 4fe610f45e7a0733900ce0f64813beb033b0f844 1 parent 7d04b93
Alex MacCaw authored

Showing 1 changed file with 3 additions and 1 deletion. Show diff stats Hide diff stats

  1. +3 1 app/controllers/subscription_addresses_controller.rb
4 app/controllers/subscription_addresses_controller.rb
@@ -18,6 +18,8 @@ def update
18 18 private
19 19
20 20 def find_subscription_address
21   - @subscription_address = current_account.subscription.subscription_address
  21 + @subscription = current_account.subscription
  22 + @subscription_address = @subscription.subscription_address ||
  23 + @subscription.build_subscription_address
22 24 end
23 25 end

0 comments on commit 4fe610f

Please sign in to comment.
Something went wrong with that request. Please try again.