summaryrefslogtreecommitdiff
path: root/app/models/bracket.rb
diff options
context:
space:
mode:
authortkimia <tkimia@purdue.edu>2014-04-28 01:30:32 -0400
committertkimia <tkimia@purdue.edu>2014-04-28 01:30:32 -0400
commitb0b2a235f02b95058aa7bfbf817d5dd1d85b6730 (patch)
tree449c0c0f348402b192da3b46df468552a71b3b63 /app/models/bracket.rb
parent7a4832621f1a0bb2e4b86ee9f879a73df0188a3e (diff)
first draft selection. Not done... most of my time was spent reqriting the SVG in ERB
Diffstat (limited to 'app/models/bracket.rb')
-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 acd33ca..7e22f0d 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.each do |m|
+ tournament.stages.first.matches_ordered.each do |m|
bracket_matches.create(match: m)
end
end