Permalink
Browse files

fix nil error

  • Loading branch information...
1 parent 7d04b93 commit 4fe610f45e7a0733900ce0f64813beb033b0f844 @maccman committed Aug 3, 2009
Showing with 3 additions and 1 deletion.
  1. +3 −1 app/controllers/subscription_addresses_controller.rb
@@ -18,6 +18,8 @@ def update
private
def find_subscription_address
- @subscription_address = current_account.subscription.subscription_address
+ @subscription = current_account.subscription
+ @subscription_address = @subscription.subscription_address ||
+ @subscription.build_subscription_address
end
end

0 comments on commit 4fe610f

Please sign in to comment.