method

write

Importance_0
v6.1.3.1 - Show latest stable - 0 notes - Class: Secrets
write(contents) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File railties/lib/rails/secrets.rb, line 50
      def write(contents)
        IO.binwrite("#{path}.tmp", encrypt(contents))
        FileUtils.mv("#{path}.tmp", path)
      end
Register or log in to add new notes.