diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2015-02-24 07:23:05 -0300 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2015-02-24 07:23:05 -0300 |
commit | 8adfd4fea78cf62b31334a05f1a567ed861cf6a9 (patch) | |
tree | a25756186916e3e4ed1caa7ab4c2cbde2fa7a2fc /activejob | |
parent | 29484043a72677362e9c828ed76213e1c55edd04 (diff) | |
download | rails-8adfd4fea78cf62b31334a05f1a567ed861cf6a9.tar.gz rails-8adfd4fea78cf62b31334a05f1a567ed861cf6a9.tar.bz2 rails-8adfd4fea78cf62b31334a05f1a567ed861cf6a9.zip |
Avoid creating an extra hash on the job test adapter
Diffstat (limited to 'activejob')
-rw-r--r-- | activejob/lib/active_job/queue_adapters/test_adapter.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activejob/lib/active_job/queue_adapters/test_adapter.rb b/activejob/lib/active_job/queue_adapters/test_adapter.rb index 7254e06031..fd7c0b207a 100644 --- a/activejob/lib/active_job/queue_adapters/test_adapter.rb +++ b/activejob/lib/active_job/queue_adapters/test_adapter.rb @@ -41,7 +41,7 @@ module ActiveJob private def job_to_hash(job, extras = {}) - { job: job.class, args: job.serialize.fetch('arguments'), queue: job.queue_name }.merge(extras) + { job: job.class, args: job.serialize.fetch('arguments'), queue: job.queue_name }.merge!(extras) end def enqueue_or_perform(perform, job, job_data) |