Skip to content

Commit

Permalink
Fix issue where PROCESS_ACTIVE_ELASTIC_JOBS env var would not allow TRUE
Browse files Browse the repository at this point in the history
  • Loading branch information
chayelheinsen committed Aug 11, 2017
1 parent 9c748ea commit 5eb9f2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/active_elastic_job/railtie.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module ActiveElasticJob
class Railtie < Rails::Railtie
config.active_elastic_job = ActiveSupport::OrderedOptions.new
config.active_elastic_job.process_jobs = ENV['PROCESS_ACTIVE_ELASTIC_JOBS'] == 'true'
config.active_elastic_job.process_jobs = ENV['PROCESS_ACTIVE_ELASTIC_JOBS'].downcase == 'true'
config.active_elastic_job.aws_credentials = lambda { Aws::InstanceProfileCredentials.new }
config.active_elastic_job.periodic_tasks_route = '/periodic_tasks'.freeze

Expand Down

0 comments on commit 5eb9f2e

Please sign in to comment.