diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/models/tournament.rb | 2 |
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 |