diff options
author | Yves Senn <yves.senn@gmail.com> | 2014-08-19 12:29:39 +0200 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2014-08-19 12:29:39 +0200 |
commit | 1aa0550d40b20e441437ebaef2c1b2bd158ac7d5 (patch) | |
tree | 7326aa25b7d12521471aa3c7796808b204fe996d /activejob/lib/active_job/queue_adapters | |
parent | c4dc0cf3510d56e8837b45c75ddad08715359fb1 (diff) | |
download | rails-1aa0550d40b20e441437ebaef2c1b2bd158ac7d5.tar.gz rails-1aa0550d40b20e441437ebaef2c1b2bd158ac7d5.tar.bz2 rails-1aa0550d40b20e441437ebaef2c1b2bd158ac7d5.zip |
use same idiom to define class method as in every other adapter.
Diffstat (limited to 'activejob/lib/active_job/queue_adapters')
-rw-r--r-- | activejob/lib/active_job/queue_adapters/queue_classic_adapter.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/activejob/lib/active_job/queue_adapters/queue_classic_adapter.rb b/activejob/lib/active_job/queue_adapters/queue_classic_adapter.rb index 081bd7b691..d74f8cf90e 100644 --- a/activejob/lib/active_job/queue_adapters/queue_classic_adapter.rb +++ b/activejob/lib/active_job/queue_adapters/queue_classic_adapter.rb @@ -14,8 +14,10 @@ module ActiveJob end class JobWrapper - def self.perform(job_name, *args) - job_name.constantize.new.execute(*args) + class << self + def perform(job_name, *args) + job_name.constantize.new.execute(*args) + end end end end |