diff options
author | nfoy <nfoy@purdue.edu> | 2014-04-27 20:52:01 -0400 |
---|---|---|
committer | nfoy <nfoy@purdue.edu> | 2014-04-27 20:52:01 -0400 |
commit | e526f5b62b3dc91ca30eb0382c071227b74baddf (patch) | |
tree | 6b25931d6b08446ea13a04c490485e50aeed6219 /app/models/game.rb | |
parent | 12b9f96b4003ec384e1583e4d6d53fcb8d5f960c (diff) | |
parent | 4d47e5e7b5d838173dd3ab68c293c03e03811392 (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 |