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.
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.