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