summaryrefslogtreecommitdiff
path: root/app/models/tournament.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/tournament.rb')
-rw-r--r--app/models/tournament.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/tournament.rb b/app/models/tournament.rb
index e21ccb1..686e066 100644
--- a/app/models/tournament.rb
+++ b/app/models/tournament.rb
@@ -40,6 +40,7 @@ class Tournament < ActiveRecord::Base
end
def []=(setting_name, val)
+ @tournament.save
tournament_setting = @tournament.settings_raw.find_by_name(setting_name)
if tournament_setting.nil?
game_setting = @tournament.game.settings.find_by_name(setting_name)