projects
/
cs356-p2-videostore.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Move checkedout? method to the Rentable superclass
[cs356-p2-videostore.git]
/
app
/
models
/
game.rb
diff --git
a/app/models/game.rb
b/app/models/game.rb
index
9880b04
..
0ca782b
100644
(file)
--- a/
app/models/game.rb
+++ b/
app/models/game.rb
@@
-1,7
+1,5
@@
-class Game < ActiveRecord::Base
- has_one :rentable
-
- validates_presence_of :title
- validates_presence_of :genre
+class Game < Rentable
+ validates_presence_of :game_genre
validates_presence_of :platform
+
end