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 object relationships between video and rentable
[cs356-p2-videostore.git]
/
app
/
models
/
video.rb
diff --git
a/app/models/video.rb
b/app/models/video.rb
index
4ecf31b
..
2ab598d
100644
(file)
--- a/
app/models/video.rb
+++ b/
app/models/video.rb
@@
-1,5
+1,5
@@
class Video < ActiveRecord::Base
-
belongs_to
:rentable
+
has_one
:rentable
validates_presence_of :director
validates_presence_of :genre