Skip to content

Commit

Permalink
Refactor config access in adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
tawan committed Nov 27, 2016
1 parent bb89e82 commit 92ab641
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/active_job/queue_adapters/active_elastic_job_adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -170,11 +170,15 @@ def aws_sqs_client
end

def aws_sqs_client_credentials
Rails.application.config.active_elastic_job.aws_credentials
config.aws_credentials
end

def aws_region
Rails.application.config.active_elastic_job.aws_region
config.aws_region
end

def config
Rails.application.config.active_elastic_job
end

def message_digest(messsage_body)
Expand Down

0 comments on commit 92ab641

Please sign in to comment.