Add the Gameplatform MVC to handle the different game platforms
[cs356-p2-videostore.git] / app / models / game.rb
index 15bf8e0..ed7f30b 100644 (file)
@@ -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