method
write
v5.1.7 -
Show latest stable
- Class:
Rails::Secrets
write(contents)public
No documentation available.
# File railties/lib/rails/secrets.rb, line 62
def write(contents)
IO.binwrite("#{path}.tmp", encrypt(contents))
FileUtils.mv("#{path}.tmp", path)
end