diff options
author | Yuji Yaginuma <yuuji.yaginuma@gmail.com> | 2019-03-14 21:20:06 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-14 21:20:06 +0900 |
commit | b9eda0049ed5eaec10aa3d727efb77a93b0fc144 (patch) | |
tree | 94e69cb5fdb6a3b9892fdff226cb2fa7e596774e /railties/lib/rails | |
parent | 25620f91ca0ab261fbc883763040ec58d205514e (diff) | |
parent | 0187053109f62ea0188a76aee53aeee396f76632 (diff) | |
download | rails-b9eda0049ed5eaec10aa3d727efb77a93b0fc144.tar.gz rails-b9eda0049ed5eaec10aa3d727efb77a93b0fc144.tar.bz2 rails-b9eda0049ed5eaec10aa3d727efb77a93b0fc144.zip |
Merge pull request #35607 from y-yagi/ensure_application_work_without_tmp_directory
Make application work without tmp directory
Diffstat (limited to 'railties/lib/rails')
-rw-r--r-- | railties/lib/rails/application.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/railties/lib/rails/application.rb b/railties/lib/rails/application.rb index 558a4d1f57..6bc6c548d2 100644 --- a/railties/lib/rails/application.rb +++ b/railties/lib/rails/application.rb @@ -587,6 +587,7 @@ module Rails if !File.exist?(key_file) random_key = SecureRandom.hex(64) + FileUtils.mkdir_p(key_file.dirname) File.binwrite(key_file, random_key) end |