mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-13 08:32:47 +00:00
Converted class tournamentmatchgen into the GeneratesLoserNames module.
Here is another way to handle functionality that you may not want bloating your ActiveRecord class, yet belongs _on_ the model. In this case, I feel there is an abstraction we are still sorely missing.
This commit is contained in:
@@ -32,6 +32,6 @@ class Tournamentmatchgen
|
||||
|
||||
def generateMatches
|
||||
@tournament.assignBouts
|
||||
Losernamegen.new.assignLoserNames(@tournament)
|
||||
@tournament.assignLoserNames
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user