summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authorLuke Shumaker <shumakl@purdue.edu>2014-04-27 02:46:23 -0400
committerLuke Shumaker <shumakl@purdue.edu>2014-04-27 02:46:23 -0400
commit125d861972b9fcd99147d67b0e8fe4102f96190e (patch)
tree86b6d8d665a4e62592fe63836de9b19d4121f262 /app/models
parentb7ef3c9078f40e5c23f53c59b7741883c3bc2fb7 (diff)
parent5301997c80401e0fa5d106dd4dbcd330b4708cfb (diff)
Merge branch 'master' of https://github.com/LukeShu/leaguer
Diffstat (limited to 'app/models')
-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 900b6d6..47cda7e 100644
--- a/app/models/tournament.rb
+++ b/app/models/tournament.rb
@@ -11,6 +11,7 @@ class Tournament < ActiveRecord::Base
def settings
@settings ||= Settings.new(self)
end
+
def settings=(setting)
setting.each do |key, value|
value = false if value == "0"