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:
parent
2299d31c4c
commit
a1ebe509dd
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue