diff options
author | Eric Wong <normalperson@yhbt.net> | 2013-10-28 06:15:02 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2013-10-28 06:15:02 +0000 |
commit | 64dc231c557426f5729ad3b8b3d5a6693ca85ad2 (patch) | |
tree | 12be3874530a0b7c181f6afbf8ed7d9f7647701b | |
parent | 22b88ef0e1e21f208d4d4de3c56be29b5efcdc05 (diff) | |
download | yahns-64dc231c557426f5729ad3b8b3d5a6693ca85ad2.tar.gz |
We'll leave setting RACK_ENV and RAILS_ENV to be the responsibility of the user. RACK_ENV makes little sense here since we do not do anything with it, and a global environment variable makes hosting different apps unpredictable.
-rw-r--r-- | lib/yahns/rack.rb | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/yahns/rack.rb b/lib/yahns/rack.rb index 27857ec..3f8f6b7 100644 --- a/lib/yahns/rack.rb +++ b/lib/yahns/rack.rb @@ -18,7 +18,6 @@ class Yahns::Rack # :nodoc: def initialize(ru, opts = {}) # always called after config file parsing, may be called after forking @app = lambda do - ENV["RACK_ENV"] ||= "none" if ru.respond_to?(:call) inner_app = ru.respond_to?(:to_app) ? ru.to_app : ru else |