{"comment":{"created_at":"2011-10-10T17:58:32Z","body":"Merged, thanks!","updated_at":"2011-10-10T17:58:32Z","url":"https://api.github.com/repos/defunkt/resque/issues/comments/2350216","id":2350216,"user":{"avatar_url":"https://secure.gravatar.com/avatar/b8dbb1987e8e5318584865f880036796?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/defunkt","id":2,"login":"defunkt"}},"action":"created","issue":{"number":423,"created_at":"2011-10-09T10:22:45Z","pull_request":{"diff_url":"https://github.com/defunkt/resque/pull/423.diff","patch_url":"https://github.com/defunkt/resque/pull/423.patch","html_url":"https://github.com/defunkt/resque/pull/423"},"body":"Using the 'twitter' gem, which defines a `::Twitter` module, I discovered this:\r\n\r\n```Ruby\r\n::Twitter # => Twitter\r\n```\r\ntrying to run a job on my Resque job called, `SocialMedia::Messengers::Twitter` resulted in:\r\n\r\n```\r\n #<NoMethodError: undefined method `perform' for Twitter:Module>\r\n```\r\n\r\nI 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`\r\n\r\nI 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.","comments":1,"title":"Resque::Helpers#constantize does'nt work correctly on 1.9.2","updated_at":"2011-10-10T17:58:32Z","url":"https://api.github.com/repos/defunkt/resque/issues/423","id":1855603,"assignee":null,"milestone":null,"closed_at":"2011-10-10T17:58:32Z","user":{"avatar_url":"https://secure.gravatar.com/avatar/053e38be1bd8b18bf8b1c26e11a797ff?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/rtlong","id":199912,"login":"rtlong"},"html_url":"https://github.com/defunkt/resque/issues/423","labels":[],"state":"closed"},"legacy":{"issue_id":1855603,"comment_id":2350216}}