lib/good_job/configuration.rb in good_job-2.5.0 vs lib/good_job/configuration.rb in good_job-2.6.0
- old
+ new
@@ -155,10 +155,10 @@
end
alias enable_cron? enable_cron
def cron
- env_cron = JSON.parse(ENV['GOOD_JOB_CRON']) if ENV['GOOD_JOB_CRON'].present?
+ env_cron = JSON.parse(ENV['GOOD_JOB_CRON'], symbolize_names: true) if ENV['GOOD_JOB_CRON'].present?
options[:cron] ||
rails_config[:cron] ||
env_cron ||
{}