instance method
write
Ruby on Rails 6.1.7.10
Since v5.2.8.1Signature
write(contents)
No documentation comment.
Parameters
-
contentsreq
Source
# File activesupport/lib/active_support/encrypted_file.rb, line 60
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 60
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::EncryptedFile