method

add_key_file_silently

Importance_0
v6.0.0 - Show latest stable - 0 notes - Class: EncryptionKeyFileGenerator
add_key_file_silently(key_path, key = nil) 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/generators/rails/encryption_key_file/encryption_key_file_generator.rb, line 28
      def add_key_file_silently(key_path, key = nil)
        create_file key_path, key || ActiveSupport::EncryptedFile.generate_key
        key_path.chmod 0600
      end
Register or log in to add new notes.