From 2195a6af1e52b437e9154d62703916d8d33fc99c Mon Sep 17 00:00:00 2001 From: Adam Coffman Date: Wed, 24 Apr 2024 12:19:29 -0500 Subject: [PATCH] change deprecated exists? to exist? --- server/config/initializers/sidekiq.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/config/initializers/sidekiq.rb b/server/config/initializers/sidekiq.rb index 4e30c283e..4fb3e6c59 100644 --- a/server/config/initializers/sidekiq.rb +++ b/server/config/initializers/sidekiq.rb @@ -7,7 +7,7 @@ config.on(:startup) do schedule_file = Rails.root.join("config", "scheduled_tasks.yml") - if File.exists?(schedule_file) && Rails.env.production? + if File.exist?(schedule_file) && Rails.env.production? Sidekiq::Cron::Job.load_from_hash YAML.load_file(schedule_file) end end