tobi / delayed_job

Database backed asynchronous priority queue -- Extracted from Shopify
http://tobi.github.com/delayed_job
MIT License
2.15k stars 1.25k forks source link

Unable to access the serialised object in my model #61

Open ganeshkumar opened 11 years ago

ganeshkumar commented 11 years ago

Hi,

for examaple: User.rb model contains "reward" method which should be called using delayed job.

def reward puts self.inspect ==> its returning the db record not the delayed job object [handler]. end Now the problem is how do i access the delayed job object in reward method.