const_defined?小错误

This commit is contained in:
guange 2015-03-31 12:02:33 +08:00
parent 02e83ea776
commit 27e123f9fd
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ class Mailer < ActionMailer::Base
@target = cls
end
def method_missing(name, *args, &block)
if Setting.delayjob_enabled && Object.const_defined?('Delayed::Worker')
if Setting.delayjob_enabled && Object.const_defined?('Delayed')
@target.delay.send(name, *args, &block)
else
@target.send(name, *args, &block).deliver