bvandenbos/resque-scheduler — pull request #172 by jonhyman (2012-08-01 21:09:24+00:00)
Title: Making inline scheduled jobs call #scheduled instead of just calling Resque::Job.create

Pull request #142 for issue #81 was incomplete in that it did not call `scheduled` on custom classes, it always called `Resque::Job.create` on it, which doesn't work for resque-status based jobs.

There's probably some good way to abstract this block of code into a method, but I wasn't sure about the difference between "klass_name" and "job_klass" on line 210 in scheduler.rb so did not.

```ruby
begin
constantize(job_klass).scheduled(queue, klass_name, *params)
rescue NameError
# Note that the custom job class (job_config['custom_job_class']) is the one enqueued
Resque::Job.create(queue, job_klass, *params)
end
```