Skip to content

Commit

Permalink
Use self.class instead of hard-coding ActiveElasticJobAdapter to su…
Browse files Browse the repository at this point in the history
…pport downstream subclasses
  • Loading branch information
cbeer committed Aug 31, 2016
1 parent 6d83065 commit c313022
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 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 @@ -83,11 +83,11 @@ def initialize(message_id, calculated, returned)
end

def enqueue(job) #:nodoc:
ActiveElasticJobAdapter.enqueue job
self.class.enqueue job
end

def enqueue_at(job, timestamp) #:nodoc:
ActiveElasticJobAdapter.enqueue_at(job, timestamp)
self.class.enqueue_at(job, timestamp)
end

class << self
Expand Down

0 comments on commit c313022

Please sign in to comment.