diff options
author | Luke Shumaker <shumakl@purdue.edu> | 2014-04-27 02:46:23 -0400 |
---|---|---|
committer | Luke Shumaker <shumakl@purdue.edu> | 2014-04-27 02:46:23 -0400 |
commit | 125d861972b9fcd99147d67b0e8fe4102f96190e (patch) | |
tree | 86b6d8d665a4e62592fe63836de9b19d4121f262 /app/models | |
parent | b7ef3c9078f40e5c23f53c59b7741883c3bc2fb7 (diff) | |
parent | 5301997c80401e0fa5d106dd4dbcd330b4708cfb (diff) |
Merge branch 'master' of https://github.com/LukeShu/leaguer
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/tournament.rb | 1 |
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" |