summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
Diffstat (limited to 'app/models')
-rw-r--r--app/models/bracket.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/bracket.rb b/app/models/bracket.rb
index 7e22f0d..acd33ca 100644
--- a/app/models/bracket.rb
+++ b/app/models/bracket.rb
@@ -4,7 +4,7 @@ class Bracket < ActiveRecord::Base
has_many :bracket_matches
def create_matches
- tournament.stages.first.matches_ordered.each do |m|
+ tournament.stages.first.matches.each do |m|
bracket_matches.create(match: m)
end
end