diff options
author | Luke Shumaker <shumakl@purdue.edu> | 2014-04-27 20:24:36 -0400 |
---|---|---|
committer | Luke Shumaker <shumakl@purdue.edu> | 2014-04-27 20:24:36 -0400 |
commit | b8ce4ab9ad7e6359080e894958a3181cbb3895d2 (patch) | |
tree | 2d559ccffad353643a92286dd6836bbf491ef53b /app/models/game.rb | |
parent | 410bbdce9752fb49ab711d4c148af1c6bbc2a53f (diff) |
touch up tournament creation
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 |