Correctly handling multiple tournaments now, yay!

This commit is contained in:
Dan Buch
2012-03-12 23:28:38 -04:00
parent b14cdd3c9e
commit ec948315aa
6 changed files with 57 additions and 35 deletions

View File

@@ -17,6 +17,10 @@ class MashTournament < ActiveRecord::Base
end
end
def total_rounds_options
@total_rounds_options ||= [3, 4, 5, 6, 7]
end
def done?
self.rounds.collect(&:done?).uniq == [true]
end