I want to add some custom methods to the delayed jobs model.
I want to have some extra such as...
def status
return "errored" unless self.last_error.blank?
return "waiting" if self.locked_at.blank?
return "running" unless self.locked_at.blank?
return "blerg" if some.other.things...
end
...on the the delayed job class.
I was just wondering how I extend it in such a way.
Thanks!