projects
/
cs356-p2-videostore.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix BonusPurchase's Object Relationship
[cs356-p2-videostore.git]
/
app
/
models
/
rentable.rb
diff --git
a/app/models/rentable.rb
b/app/models/rentable.rb
index
e52af25
..
2905aed
100644
(file)
--- a/
app/models/rentable.rb
+++ b/
app/models/rentable.rb
@@
-1,6
+1,7
@@
class Rentable < ActiveRecord::Base
has_many :coitems
has_many :rentable_purchases
+ has_many :bonus_purchases
validates_presence_of :title
# don't validate newrelease, false is ok