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.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/tournament.rb b/app/models/tournament.rb
index a569213..46a2ba7 100644
--- a/app/models/tournament.rb
+++ b/app/models/tournament.rb
@@ -8,6 +8,8 @@ class Tournament < ActiveRecord::Base
alias_attribute :stages, :tournament_stages
+ before_save { self.status ||= 0 }
+
# Settings #################################################################
def settings