Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use const_get to get klass without inject #1384

Merged
merged 1 commit into from Oct 29, 2019

Conversation

shioimm
Copy link
Contributor

@shioimm shioimm commented Aug 13, 2019

Enumerable#inject was used to get constant in Rack::Handler.get.
But Object#const_get is available to get nested constant from Ruby version 2.0.0.
And the required minimum ruby version of Rack is 2.2.2.
It seems that const_get doesn't need inject anymore,
and this change is for replacing it without inject.

`Enumerable#inject` was used to get constant in `Rack::Handler.get`.
But `Object#const_get` is available to get nested constant from Ruby version 2.0.0.
And the required minimum ruby version of Rack is 2.2.2.
It seems that `const_get` doesn't need `inject` anymore,
and this change is for replacing it without `inject`.
@rafaelfranca rafaelfranca merged commit e50ca55 into rack:master Oct 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants