defunkt/resque — pull request #423 by rtlong (2011-10-09 10:22:45+00:00)
Title: Resque::Helpers#constantize does'nt work correctly on 1.9.2

Using the 'twitter' gem, which defines a `::Twitter` module, I discovered this:

```Ruby
::Twitter # => Twitter
```
trying to run a job on my Resque job called, `SocialMedia::Messengers::Twitter` resulted in:

```
#
```

I learned that it was due to Ruby 1.9.2's addition of the `inherit` parameter to its `Module#const_get` that defaults to true. This makes it search ancestors by default, so the algorithm in `constantize` will fail. All I've done in this commit is implement the changes that were made to `ActiveSupport::Inflector#constantize`

I didn't make a feature branch, because it seemed ridiculous for just one file; but, if it's a problem, I'll go ahead and do that.