summaryrefslogtreecommitdiff
path: root/billing/app
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2013-07-01 09:55:54 +0200
committerAzul <azul@leap.se>2013-07-17 10:47:14 +0200
commita49c63eb117abf47ca1804493c25ae34804f8ee1 (patch)
tree4393c57948fecc23cbdf4f91051768bd8c4d5c3a /billing/app
parentd3e4489cc4833c196eeef77f4fe0680c3f7e7a09 (diff)
test non braintree parts of customer, validate user
Diffstat (limited to 'billing/app')
-rw-r--r--billing/app/models/customer.rb2
1 files changed, 2 insertions, 0 deletions
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