From 1e4245907ca17d1d6afbeca82b25c35c970ba499 Mon Sep 17 00:00:00 2001 From: Azul Date: Tue, 2 Jul 2013 17:14:32 +0200 Subject: billing: functional test for payments controller --- billing/app/models/customer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'billing/app/models') 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? } -- cgit v1.2.3