String#constantize
kmatrah opened this issue · comments
Karim Matrah commented
Hi! Nice gem!
I came across a little problem when using callbacks. Sidekiq::Batch::Callback::Worker#perform
makes use of ActiveSupport String#constantize
method. For non-Rails apps for which ActiveSupport is not embedded by default, it crashes. I solved the issue by providing my own version of String#constantize
.
We can either add an explicit dependency to ActiveSupport or directly provide a version of String#constantize
.
Robert May commented
Could be replaced with the use of:
Object.const_get("NameOfClass")
marcin naglik commented
Hi @kmatrah, can you create a pull request for that?
marcin naglik commented
It should be resolved in master
marcin naglik commented
Closing as it's fixed in 0.1.5