Use ActiveSupport's constantize#120
Conversation
|
I was not able to get any tests to show the bug. :/ |
|
Hmm, that's disconcerting. I want to give it a shot myself before merging. On Thu, Sep 3, 2015 at 12:50 PM, Joe Van Dyk notifications@github.com
|
|
Another option is to use Sidekiq's version: Resque seems to copy over the implementation: I updated the commit with using String#constanize if it exists. I'm not sure what the best method is. |
|
Tried a bit to write a failing spec and couldn't, but oh well, it's not a bad idea anyways. Will be releasing 0.11.0 in just a bit. |
|
I wasn't sure if you would want to use the methods that Sidekiq or Resque use. (It's too bad this isn't a standard Ruby method) |
|
I think keeping the current method if ActiveSupport isn't present is fine. And I just realized I forgot to update the changelog with this fix before I On Fri, Sep 4, 2015 at 5:27 PM, Joe Van Dyk notifications@github.com
|
Fixes #115