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

env is deprecated and will be removed from Rails 5.1 #23294

Closed
ianks opened this issue Jan 27, 2016 · 3 comments
Closed

env is deprecated and will be removed from Rails 5.1 #23294

ianks opened this issue Jan 27, 2016 · 3 comments

Comments

@ianks
Copy link
Contributor

ianks commented Jan 27, 2016

It seems env is finally being deprecated in 5.1

What is the best way to access fields that I would have previously needed from env? For example, an Authorization header that does not exist on the headers hash?

@maclover7
Copy link
Contributor

Please use the mailing list or StackOverflow for questions/help, where a wider community will be able to help you. We reserve the issues tracker for issues only.

@ianks
Copy link
Contributor Author

ianks commented Jan 27, 2016

To those wondering, using request.env seems to be the way to go.

@richpeck
Copy link

Thanks!

gonzalo-bulnes pushed a commit to gonzalo-bulnes/simple_token_authentication that referenced this issue Apr 7, 2016
gonzalo-bulnes pushed a commit to gonzalo-bulnes/simple_token_authentication that referenced this issue Jul 7, 2016
gonzalo-bulnes pushed a commit to gonzalo-bulnes/simple_token_authentication that referenced this issue Jul 7, 2016
nihtalak added a commit to rubygarage/detectify that referenced this issue Jul 19, 2016
DEPRECATION WARNING: env is deprecated and will be removed from Rails 5.1
rails/rails#23294
gosukiwi added a commit to gosukiwi/tubesock that referenced this issue Jul 18, 2018
`env` is deprecated in Ralis 5.0 and removed in 5.1, this updates the code to use `request.env` instead: rails/rails#23294
sauloperez added a commit to coopdevs/openfoodnetwork that referenced this issue Mar 16, 2021
I found it at the very bottom of the `test-consumer-features` CI build
job. See: rails/rails#23294.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants