Switch to a single joined table for Videos and Games
[cs356-p2-videostore.git] / app / models / game.rb
index 9880b04..4991aa9 100644 (file)
@@ -1,7 +1,4 @@
-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