Skip to content

Commit

Permalink
Remove redundant boolean condition
Browse files Browse the repository at this point in the history
  • Loading branch information
tawan committed Nov 27, 2016
1 parent d746ba1 commit 7023166
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ The snippet below shows the various configurable settings and their defaults.
```Ruby
Rails.application.configure do
config.active_elastic_job.process_jobs = ENV['PROCESS_ACTIVE_ELASTIC_JOBS'] == 'true' || false
config.active_elastic_job.process_jobs = ENV['PROCESS_ACTIVE_ELASTIC_JOBS'] == 'true'
config.active_elastic_job.aws_credentials = Aws::InstanceProfileCredentials.new
config.active_elastic_job.secret_key_base = Rails.application.secrets[:secret_key_base]
cofnig.active_elastic_job.periodic_tasks_route = '/periodic_tasks'.freeze
Expand Down
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' || false
config.active_elastic_job.process_jobs = ENV['PROCESS_ACTIVE_ELASTIC_JOBS'] == 'true'
config.active_elastic_job.aws_credentials = Aws::InstanceProfileCredentials.new
config.active_elastic_job.periodic_tasks_route = '/periodic_tasks'.freeze

Expand Down

0 comments on commit 7023166

Please sign in to comment.