'No implicit conversion of Class into String' for inline execution
Author: amatteiniCreated Jun 2, 2025Updated Jun 2, 2025
When running a job inline, within another job, like this
class ParentJob
def perform
Resque.inline = true
ChildJob.create()A 'No implicit conversion of Class into String' error is thrown from Resque::Job.create(), at this line
https://github.com/resque/resque/blob/da70131fb6d48aa6cb6f58a8a28b9014f620bfb0/lib/resque/job.rb#L93
I see that in the create() method, the klass parameter is explicitly converted to String only when Resque.inline? is false.
Shouldn't do that also when executing inline?
Thanks!
Source: resque/resque