aboutsummaryrefslogtreecommitdiffstats
path: root/activejob
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2014-08-19 12:29:39 +0200
committerYves Senn <yves.senn@gmail.com>2014-08-19 12:29:39 +0200
commit1aa0550d40b20e441437ebaef2c1b2bd158ac7d5 (patch)
tree7326aa25b7d12521471aa3c7796808b204fe996d /activejob
parentc4dc0cf3510d56e8837b45c75ddad08715359fb1 (diff)
downloadrails-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')
-rw-r--r--activejob/lib/active_job/queue_adapters/queue_classic_adapter.rb6
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