aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/encrypted_file.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activesupport/lib/active_support/encrypted_file.rb')
-rw-r--r--activesupport/lib/active_support/encrypted_file.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/encrypted_file.rb b/activesupport/lib/active_support/encrypted_file.rb
index 671b6b6a69..c66f1b557e 100644
--- a/activesupport/lib/active_support/encrypted_file.rb
+++ b/activesupport/lib/active_support/encrypted_file.rb
@@ -57,7 +57,7 @@ module ActiveSupport
private
def writing(contents)
- tmp_file = "#{content_path.basename}.#{Process.pid}"
+ tmp_file = "#{Process.pid}.#{content_path.basename.to_s.chomp('.enc')}"
tmp_path = Pathname.new File.join(Dir.tmpdir, tmp_file)
tmp_path.binwrite contents