1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-03-25 01:14:43 +00:00
Commit Graph

48 Commits

Author SHA1 Message Date
0fd3bd64fe Added a bout board 2015-06-19 15:25:01 +00:00
RJ Osborne
284439e2cf Removed upcomingMatches because matches are an A-R relation of Tournament 2015-05-28 00:25:14 -04:00
RJ Osborne
062396da0a A Tournament can now generate its own matches.
This was again extracted as a module.  Modules get more powerful as they get more generic.  This is far from generic.
2015-05-27 23:57:37 -04:00
RJ Osborne
9b2c2dde60 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.
2015-05-27 23:29:51 -04:00
RJ Osborne
25c92a125d Boutgen is dead. Tournaments can assign their own bout numbers. 2015-05-27 23:04:17 -04:00
RJ Osborne
091b7c4181 Cut the runtime by queueing the changes in memory and deferring database writes
Made some unspecified behavior explicit
2015-05-26 19:26:15 -04:00
9d8e0850bc Refactored generating matches 2015-05-26 18:27:55 +00:00
RJ Osborne
2a57cafd6d extracted wrestlers_for_pool method
removed unnecessary select
2015-05-23 08:07:11 -04:00
RJ Osborne
44ec0b55f0 introduced constructor on TournamentMatchGen 2015-05-23 05:08:16 -04:00
e7bfad8df0 Auto creating of high school weights 2015-04-27 14:58:22 -04:00
37470d9602 Moved match generation to a class and added tournament_type to tournaments. 2015-04-27 13:54:57 -04:00
9c5c12c413 Matchups_array completely removed. I do not know why has_many matches
does not work in tournaments. The solution was to add a matches
method.
2015-04-27 09:50:41 -04:00
6d39bcb868 Remove matchups_array 2015-04-26 15:58:15 -04:00
dd44efa869 Got stuff working with matches being saved individually. 2015-04-26 15:49:13 -04:00
b86211102b Revert "Revert "Moving away from matchups_array and saving matches individually""
This reverts commit 7b3fe2aaad.
2015-04-25 21:44:08 -04:00
7b3fe2aaad Revert "Moving away from matchups_array and saving matches individually"
This reverts commit 650a9ed7d6.
2015-04-25 13:59:59 -04:00
650a9ed7d6 Moving away from matchups_array and saving matches individually 2015-04-25 13:51:16 -04:00
1f67557fca Saving matchups_array 2015-04-21 22:31:29 -04:00
1c8ad90e8a Stopped saving matchups_array to test page speed 2015-04-21 22:15:18 -04:00
9de0d46e66 Saving matchups_array again. 2015-04-21 21:26:10 -04:00
b61431930f Now naming loser of boutNumber in boutgen. Boutgen only run once now. 2015-04-21 21:15:44 -04:00
367381208a Took out matchups_array saving, did not remove from database. 2015-04-21 17:13:26 -04:00
2b1618c69b Cleaned up a bunch of shit. Depricated model methods and controller methods. 2015-04-15 13:42:12 +00:00
9986c8b407 Removed unnecessary attr_accessors 2015-03-30 17:45:37 +00:00
43d7089b44 Associated wrestlers and tournaments through weights 2015-03-28 14:48:36 +00:00
4b6b20c912 Created integration test for poolbracket matchups 2015-03-27 12:52:35 +00:00
a1fbcc4a9f Added weight_max to matchup 2015-03-25 13:08:36 +00:00
06a4d1b95d Fixed matchup object to hash and hash to object 2015-03-25 12:56:19 +00:00
e0f6c129c7 Had to convert all Matchups to hash and back to objects for serialization 2015-03-25 12:32:38 +00:00
a0083ab939 Currently not saving tournament.matchups_array 2015-03-25 01:42:10 +00:00
862c69e431 Changed tournament.matchups to tournament.matchups_array 2015-03-25 00:49:23 +00:00
0b4c9075b1 Idk 2015-03-25 00:43:21 +00:00
a6f78a6dc6 Persisting matchups 2015-03-25 00:15:27 +00:00
20f9b7f016 Cleaned up a little bit of code 2015-03-23 11:59:56 +00:00
2843760779 Create bracket views with upcomingMatches 2015-03-16 08:35:56 -04:00
e8dd332bbc Add boutNumber to upcomgingMatches 2015-03-12 15:18:06 -04:00
dc9639cf1c Calculate matchups for pools. This breaks generating matches. 2015-03-12 15:03:38 -04:00
aca4d9adf4 Added generating matches as delayed job 2015-02-09 11:02:13 -05:00
e9cf73f9d5 Made onePool and twoPool views. Also implemented round robin gem. 2015-02-05 09:53:08 -05:00
0244d15a8b Generated bouts and rounds. Need to fix rounds for odd numbered pools. 2015-02-03 10:41:49 -05:00
7ea80b2997 Working on generating rounds in tournament model 2015-02-02 15:45:46 -05:00
90b96bb218 Making progress on generating matches. 2014-12-18 10:45:49 -05:00
1899218798 Made pool and bout classes. Still need to fix bouts doubling on every
refresh of upcoming matches view
2014-12-15 13:12:39 -05:00
Jacob Cody Wimer
1d024e0571 Added 11 man bracket 2014-01-31 18:33:58 -05:00
Jacob Cody Wimer
c5a7bc3815 A ton of stuff was done to finalize the app for use 2014-01-25 05:28:42 -05:00
Jacob Cody Wimer
7f8718af35 Added matches scaffold and ascended views of weights and schools 2014-01-24 15:16:33 -05:00
Jacob Cody Wimer
d4b97c83c3 Updated re-directs, added weights to tournament#show, and edited a few views 2014-01-22 13:12:40 -05:00
Jacob Cody Wimer
44511e8600 Entered devise secret key 2014-01-22 09:02:12 -05:00