Skip to content

Commit 7c40e99

Browse files
committed
Cannot clone ENV, use ENV.to_h to get a copy of ENV as a hash (TypeError)
1 parent 4a9b1c9 commit 7c40e99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/redmine-installer/redmine.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,7 @@ def load_database_dump
713713
end
714714

715715
def without_env(*names)
716-
backup = ENV.clone.to_hash
716+
backup = ENV.to_h
717717
ENV.delete_if {|key, _| names.include?(key) }
718718
yield
719719
ensure

0 commit comments

Comments
 (0)