instance method
write
Ruby on Rails 8.1.2
Since v5.2.8.1Signature
write(contents)
No documentation comment.
Parameters
-
contentsreq
Source
# File activesupport/lib/active_support/encrypted_file.rb, line 78
def write(contents)
IO.binwrite "#{content_path}.tmp", encrypt(contents)
FileUtils.mv "#{content_path}.tmp", content_path
end
Defined in activesupport/lib/active_support/encrypted_file.rb line 78
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::EncryptedFile