diff options
author | Azul <azul@leap.se> | 2013-07-02 17:14:32 +0200 |
---|---|---|
committer | Azul <azul@leap.se> | 2013-07-17 10:47:14 +0200 |
commit | 1e4245907ca17d1d6afbeca82b25c35c970ba499 (patch) | |
tree | 432d9012731d2f35b704541f1fd976aaef2ae92f /billing/app/models | |
parent | 968448cea22364f1fd423cedc54cf6d8a0f2e09e (diff) |
billing: functional test for payments controller
Diffstat (limited to 'billing/app/models')
-rw-r--r-- | billing/app/models/customer.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/billing/app/models/customer.rb b/billing/app/models/customer.rb index 747f17f..515e204 100644 --- a/billing/app/models/customer.rb +++ b/billing/app/models/customer.rb @@ -33,7 +33,7 @@ class Customer < CouchRest::Model::Base self end - def default_credit_card(braintree_data = nil) + def default_credit_card return unless has_payment_info? credit_cards.find { |cc| cc.default? } |