From a49c63eb117abf47ca1804493c25ae34804f8ee1 Mon Sep 17 00:00:00 2001 From: Azul Date: Mon, 1 Jul 2013 09:55:54 +0200 Subject: test non braintree parts of customer, validate user --- billing/app/models/customer.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'billing/app/models/customer.rb') diff --git a/billing/app/models/customer.rb b/billing/app/models/customer.rb index 161f763..7d35756 100644 --- a/billing/app/models/customer.rb +++ b/billing/app/models/customer.rb @@ -6,6 +6,8 @@ class Customer < CouchRest::Model::Base belongs_to :user property :braintree_customer_id + validates :user, presence: true + design do view :by_user_id view :by_braintree_customer_id -- cgit v1.2.3