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:
commit
e0a22dd66f
1 changed files with 1 additions and 1 deletions
|
@ -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('::')
|
||||
|
|
Loading…
Reference in a new issue