diff options
author | guntasgrewal <guntasgrewal@gmail.com> | 2014-04-27 20:47:42 -0400 |
---|---|---|
committer | guntasgrewal <guntasgrewal@gmail.com> | 2014-04-27 20:47:42 -0400 |
commit | 4d47e5e7b5d838173dd3ab68c293c03e03811392 (patch) | |
tree | 594659a4fbc6cbc1afd188f94f8196e203cabe31 /app/models/game.rb | |
parent | df1cda1faab97f4c424efdcf8b6822f98b73adb8 (diff) | |
parent | 9d0be853cef35412c0bfe92c80502fd9da7947f1 (diff) |
Merge branch 'master' of https://github.com/LukeShu/leaguer
Diffstat (limited to 'app/models/game.rb')
-rw-r--r-- | app/models/game.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/models/game.rb b/app/models/game.rb index 5f4c46d..c5cb32a 100644 --- a/app/models/game.rb +++ b/app/models/game.rb @@ -1,5 +1,7 @@ class Game < ActiveRecord::Base belongs_to :parent, class_name: "Game" has_many :children, class_name: "Game" - has_many :settings, class_name: "GameSetting" + has_many :game_settings + + alias_attribute :settings, :game_settings end |