1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Add missing require "tmpdir" in ActiveSupport::EncryptedFile

This commit is contained in:
Vladimir Dementyev 2019-02-05 14:19:08 -05:00
parent 2299d31c4c
commit a1ebe509dd
No known key found for this signature in database
GPG key ID: 8E0A19D3D1EDF5EB

View file

@ -1,6 +1,7 @@
# frozen_string_literal: true
require "pathname"
require "tmpdir"
require "active_support/message_encryptor"
module ActiveSupport
@ -67,7 +68,7 @@ module ActiveSupport
write(updated_contents) if updated_contents != contents
ensure
FileUtils.rm(tmp_path) if tmp_path.exist?
FileUtils.rm(tmp_path) if tmp_path&.exist?
end