Rails Delayed Job & Library Class
Posted
by Lee
on Stack Overflow
See other posts from Stack Overflow
or by Lee
Published on 2010-04-02T21:51:19Z
Indexed on
2010/04/02
21:53 UTC
Read the original article
Hit count: 415
ruby-on-rails
|delayed-job
Hey we have a library class (lib/Mixpanel) that calls delayed job as follows:
class Mixpanel
attr_accessor :options
attr_accessor :event
def track!()
..
dj = send_later :access_api # also tried with self.send_later
..
end
def access_api
..
end
The problem is that when we run rake jobs:work: we get the following error:
undefined method `access_api' for #
Any idea why?
© Stack Overflow or respective owner