Merge branch 'develop' of https://git.trustie.net/jacknudt/trustieforge into develop
This commit is contained in:
commit
7b18f22528
|
@ -34,13 +34,13 @@ class Mailer < ActionMailer::Base
|
||||||
@target = cls
|
@target = cls
|
||||||
end
|
end
|
||||||
def method_missing(name, *args, &block)
|
def method_missing(name, *args, &block)
|
||||||
if Setting.delayjob_enabled? && Object.const_defined?('Delayed')
|
# if Setting.delayjob_enabled? && Object.const_defined?('Delayed')
|
||||||
# with delayed_job
|
# # with delayed_job
|
||||||
@target.delay.send(name, *args, &block)
|
# @target.delay.send(name, *args, &block)
|
||||||
else
|
# else
|
||||||
# without delayed_job
|
# without delayed_job
|
||||||
@target.send(name, *args, &block).deliver
|
@target.send(name, *args, &block).deliver
|
||||||
end
|
# end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue