Skip to content

Commit

Permalink
Avoid creating an extra hash on the job test adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosantoniodasilva committed Feb 24, 2015
1 parent 2948404 commit 8adfd4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activejob/lib/active_job/queue_adapters/test_adapter.rb
Expand Up @@ -41,7 +41,7 @@ def enqueue_at(job, timestamp) #:nodoc:
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)
Expand Down

0 comments on commit 8adfd4f

Please sign in to comment.