zapnap/resque_mailer — Issue #19: undefined method `deliver'
Author: cj
Created: 2012-01-04 21:05:10+00:00
State: open

Hi,

So when I do `AutoMailer.resque.deliver`:

```
class AutoMailer < ActionMailer::Base
include Resque::Mailer

default from: "from@example.com"

# Subject can be set in your I18n file at config/locales/en.yml
# with the following lookup:
#
# en.auto_mailer.resque.subject
#
def resque
@greeting = "Hi"

mail to: "to@example.org"
end
end
```

I get:

```
NoMethodError: undefined method `deliver' for Resque Client connected to redis://localhost:6379/0:Module
from (irb):3
from /Users/cj/.rvm/gems/ruby-1.9.3-p0@global/gems/railties-3.1.3/lib/rails/commands/console.rb:45:in `start'
from /Users/cj/.rvm/gems/ruby-1.9.3-p0@global/gems/railties-3.1.3/lib/rails/commands/console.rb:8:in `start'
from /Users/cj/.rvm/gems/ruby-1.9.3-p0@global/gems/railties-3.1.3/lib/rails/commands.rb:40:in `'
from script/rails:6:in `require'
from script/rails:6:in `

'
```

I'm using rails 3.1.3, any ideas on what might be going on?

Many thanks