1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #35569 from prathamesh-sonpatki/env-vars

Mention `environment variable` instead of just `environment`
This commit is contained in:
Kasper Timm Hansen 2019-03-11 14:42:15 +01:00 committed by GitHub
commit 2259b486f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -268,9 +268,9 @@
*Jose Luis Duran*
* Deprecate support for using the `HOST` environment to specify the server IP.
* Deprecate support for using the `HOST` environment variable to specify the server IP.
The `BINDING` environment should be used instead.
The `BINDING` environment variable should be used instead.
Fixes #29516.

View file

@ -221,8 +221,8 @@ module Rails
if ENV["HOST"] && !ENV["BINDING"]
ActiveSupport::Deprecation.warn(<<-MSG.squish)
Using the `HOST` environment to specify the IP is deprecated and will be removed in Rails 6.1.
Please use `BINDING` environment instead.
Using the `HOST` environment variable to specify the IP is deprecated and will be removed in Rails 6.1.
Please use `BINDING` environment variable instead.
MSG
return ENV["HOST"]