Skip to content

Commit

Permalink
change deprecated exists? to exist?
Browse files Browse the repository at this point in the history
  • Loading branch information
acoffman authored Apr 24, 2024
1 parent a5c4722 commit 2195a6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/config/initializers/sidekiq.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2195a6a

Please sign in to comment.