mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-15 01:17:12 +00:00
extracted wrestlers_for_pool method
removed unnecessary select
This commit is contained in:
@@ -28,10 +28,10 @@ class Tournament < ActiveRecord::Base
|
||||
|
||||
def upcomingMatches
|
||||
if matches.nil?
|
||||
return matches
|
||||
return nil
|
||||
else
|
||||
generateMatchups
|
||||
return matches
|
||||
matches
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user