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.
@@ -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!
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: delayed_job_extras
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.12
4
+ version: 0.9.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - markbates