summaryrefslogtreecommitdiff
path: root/app/models/game.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/game.rb')
-rw-r--r--app/models/game.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/models/game.rb b/app/models/game.rb
index 13520ac..c5cb32a 100644
--- a/app/models/game.rb
+++ b/app/models/game.rb
@@ -1,3 +1,7 @@
class Game < ActiveRecord::Base
- belongs_to :parent
+ belongs_to :parent, class_name: "Game"
+ has_many :children, class_name: "Game"
+ has_many :game_settings
+
+ alias_attribute :settings, :game_settings
end