projects
/
cs356-p2-videostore.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Revert "Add the has_many_polymorphs purchaseable model"
[cs356-p2-videostore.git]
/
app
/
models
/
customer.rb
diff --git
a/app/models/customer.rb
b/app/models/customer.rb
index
58db47d
..
901b9a5
100644
(file)
--- a/
app/models/customer.rb
+++ b/
app/models/customer.rb
@@
-2,8
+2,6
@@
class Customer < ActiveRecord::Base
has_many :coitems
has_many :bitems
- has_many_polymorphs :purchaseables, :from => [:coitems, :bitems], :through => :purchases
-
validates_presence_of :name, :email, :phone, :address
validates_numericality_of :debt