summaryrefslogtreecommitdiff
path: root/app/models/game.rb
diff options
context:
space:
mode:
authorAndrewMurrell <amurrel@purdue.edu>2014-04-27 20:39:17 -0400
committerAndrewMurrell <amurrel@purdue.edu>2014-04-27 20:39:17 -0400
commitfbdb313c53b836deb1b4151169b32656fd1f70da (patch)
treea2444e326d7a737ee5c8bbcd149afa16481796de /app/models/game.rb
parentc87dbe49d521683900c20a9425a96467fa631489 (diff)
parent9d0be853cef35412c0bfe92c80502fd9da7947f1 (diff)
Merge branch 'master' of http://github.com/LukeShu/leaguer
Diffstat (limited to 'app/models/game.rb')
-rw-r--r--app/models/game.rb4
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