1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

Merge pull request #1336 from willsu/rescue_name_error_in_core_exts

Added rescue from NameError to the require ActiveSupport Inflections to provide (unofficial) support for the sidekiq process for Rails 2.3
This commit is contained in:
Mike Perham 2013-11-13 15:38:05 -08:00
commit e0a22dd66f

View file

@ -90,7 +90,7 @@ end
begin
require 'active_support/core_ext/string/inflections'
rescue LoadError
rescue LoadError, NameError # NameError is necessary to run Sidekiq unofficially on Rails 2.3
class String
def constantize
names = self.split('::')