diff options
author | tkimia <tkimia@purdue.edu> | 2014-04-28 01:30:32 -0400 |
---|---|---|
committer | tkimia <tkimia@purdue.edu> | 2014-04-28 01:30:32 -0400 |
commit | b0b2a235f02b95058aa7bfbf817d5dd1d85b6730 (patch) | |
tree | 449c0c0f348402b192da3b46df468552a71b3b63 /app/models/bracket.rb | |
parent | 7a4832621f1a0bb2e4b86ee9f879a73df0188a3e (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.rb | 2 |
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 |