diff options
Diffstat (limited to 'app/models/tournament.rb')
-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 2d4d6b6..154cc22 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" |