summaryrefslogtreecommitdiff
path: root/billing/app/models/customer.rb
diff options
context:
space:
mode:
Diffstat (limited to 'billing/app/models/customer.rb')
-rw-r--r--billing/app/models/customer.rb2
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? }