method
write
rails latest stable - Class:
ActiveSupport::EncryptedFile
write(contents)public
No documentation available.
# 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