Thank YouTube! I didn't notice about the existence of
ResqueScheduler::Util::constantize

I'll fix it tomorrow.

On Dec 4, 2013 10:58 PM, "Ryan Biesemeyer" <notifications@github.com> wrote:
>
> In lib/resque_scheduler/server.rb:
>
> > @@ -59,6 +60,18 @@ def queue_from_class_name(class_name)
> >            erb File.read(File.join(File.dirname(__FILE__),
'server/views/delayed.erb'))
> >          end
> >
> > +        get "/delayed/jobs/:klass" do
> > +          begin
> > +            klass = Object.const_get(params[:klass])
>
> This isn't going to work for job classes that are not directly in the
Object namespace. Consider a job class SomeNamespace::SomeJob. Maybe
ResqueScheduler::Util::constantize(camel_cased_word) would be a good fit
here?
>
> —
> Reply to this email directly or view it on GitHub.