提交 1aa0550d 编写于 作者: Y Yves Senn

use same idiom to define class method as in every other adapter.

上级 c4dc0cf3
......@@ -14,8 +14,10 @@ def enqueue_at(job, timestamp, *args)
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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册