projects
/
cs356-p2-videostore.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add the Gameplatform MVC to handle the different game platforms
[cs356-p2-videostore.git]
/
app
/
models
/
game.rb
diff --git
a/app/models/game.rb
b/app/models/game.rb
index
15bf8e0
..
ed7f30b
100644
(file)
--- a/
app/models/game.rb
+++ b/
app/models/game.rb
@@
-6,6
+6,10
@@
class Game < Rentable
return Gamegenre.find(game_genre).name
end
+ def game_platform
+ return Gameplatform.find(platform).name
+ end
+
def calculated_price
# FIXME: generate this based on day of week, newrelease
day_of_week = Time.now.to_date.wday