mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-05-12 08:25:19 +00:00
Upgraded to rails 8.0.2, moved from dalli to solid cache, moved from delayed_job to solid queue, and add solid cable. deploy/rails-dev-run.sh no longer needs to chmod. Fixed finished_at callback for matches. Migrated from Devise to built in rails auth. Added view tests for the bracket page testing that all bout numbers render for all matches in each bracket type.
This commit is contained in:
@@ -4,11 +4,8 @@ class GenerateTournamentMatches
|
||||
end
|
||||
|
||||
def generate
|
||||
if Rails.env.production?
|
||||
self.delay(:job_owner_id => @tournament.id, :job_owner_type => "Generate matches for all weights").generate_raw
|
||||
else
|
||||
self.generate_raw
|
||||
end
|
||||
# Use perform_later which will execute based on centralized adapter config
|
||||
GenerateTournamentMatchesJob.perform_later(@tournament)
|
||||
end
|
||||
|
||||
def generate_raw
|
||||
|
||||
Reference in New Issue
Block a user