delayed_job_extras 0.9.12 → 0.9.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/delayed_job_extras/action_mailer.rb +5 -0
- metadata +1 -1
|
@@ -8,6 +8,7 @@ if defined?(ActionMailer)
|
|
|
8
8
|
super
|
|
9
9
|
eval %{
|
|
10
10
|
class ::#{klass}Worker < DJ::Worker
|
|
11
|
+
priority :immediate
|
|
11
12
|
|
|
12
13
|
attr_accessor :called_method
|
|
13
14
|
attr_accessor :args
|
|
@@ -35,6 +36,10 @@ if defined?(ActionMailer)
|
|
|
35
36
|
end
|
|
36
37
|
|
|
37
38
|
def method_missing_with_extras(method_symbol, *parameters) #:nodoc:
|
|
39
|
+
if ActionMailer::Base.delivery_method == :test
|
|
40
|
+
return method_missing_without_extras(method_symbol, *parameters)
|
|
41
|
+
end
|
|
42
|
+
|
|
38
43
|
if match = matches_dynamic_method?(method_symbol)
|
|
39
44
|
case match[1]
|
|
40
45
|
when 'deliver'# then new(match[2], *parameters).deliver!
|