aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/plugin
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2017-12-08 13:42:01 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2017-12-08 14:50:27 -0800
commita50b8ea3503f5642330c1e6b94320115796b4bab (patch)
tree1fab4db91d54af009c513f2958d90e0d03e797cf /railties/lib/rails/plugin
parentcd0283ef29eaa4a8eb9c90d6c2efaccb20012a20 (diff)
downloadrails-a50b8ea3503f5642330c1e6b94320115796b4bab.tar.gz
rails-a50b8ea3503f5642330c1e6b94320115796b4bab.tar.bz2
rails-a50b8ea3503f5642330c1e6b94320115796b4bab.zip
Set the Rails environment from an environment variable
Option parsing happens too late to have any impact on the Rails environment. Rails accesses the environment name and memoizes it too early in the boot process for a commandline option to have any impact on the database connection, so we'll change this test to set the environment from an environment variable (and ensure it still works when running tests with `ruby`)
Diffstat (limited to 'railties/lib/rails/plugin')
0 files changed, 0 insertions, 0 deletions