1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

support older versions of bundler that do not have clean_env (#1314)

fixes https://github.com/puma/puma/issues/1312
This commit is contained in:
Michael Grosser 2017-06-02 07:21:52 -07:00 committed by Nate Berkopec
parent 964780b4e7
commit fec20f0f05

View file

@ -163,7 +163,7 @@ module Puma
# Run the server. This blocks until the server is stopped
def run
previous_env = (defined?(Bundler) ? Bundler.clean_env : ENV.to_h)
previous_env = (defined?(Bundler) ? Bundler::ORIGINAL_ENV : ENV.to_h)
@config.clamp