aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/commands/dbconsole.rb
diff options
context:
space:
mode:
authorDamien Mathieu <damien@heroku.com>2015-03-19 10:06:28 +0100
committerDamien Mathieu <damien@heroku.com>2015-03-19 10:06:28 +0100
commitd578cbfb5c9fa353ce041bc826e13905910e2d2a (patch)
tree825cabca0569e490290923ea8cb0c6f0a86eef2f /railties/lib/rails/commands/dbconsole.rb
parent7f338b9082fe3488f681c171b93c371cfc951f22 (diff)
downloadrails-d578cbfb5c9fa353ce041bc826e13905910e2d2a.tar.gz
rails-d578cbfb5c9fa353ce041bc826e13905910e2d2a.tar.bz2
rails-d578cbfb5c9fa353ce041bc826e13905910e2d2a.zip
don't fallback to RACK_ENV when RAILS_ENV is not present
Diffstat (limited to 'railties/lib/rails/commands/dbconsole.rb')
-rw-r--r--railties/lib/rails/commands/dbconsole.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/commands/dbconsole.rb b/railties/lib/rails/commands/dbconsole.rb
index 5175e31f14..be0c0fc659 100644
--- a/railties/lib/rails/commands/dbconsole.rb
+++ b/railties/lib/rails/commands/dbconsole.rb
@@ -107,7 +107,7 @@ module Rails
if Rails.respond_to?(:env)
Rails.env
else
- ENV["RAILS_ENV"] || ENV["RACK_ENV"] || "development"
+ ENV["RAILS_ENV"] || "development"
end
end