method

change_encrypted_configuration_in_system_editor

change_encrypted_configuration_in_system_editor()
private

No documentation available.

# File railties/lib/rails/commands/encrypted/encrypted_command.rb, line 54
        def change_encrypted_configuration_in_system_editor
          using_system_editor do
            encrypted_configuration.change { |tmp_path| system_editor(tmp_path) }
            say "File encrypted and saved."
            warn_if_encrypted_configuration_is_invalid
          end
        rescue ActiveSupport::EncryptedFile::MissingKeyError => error
          say error.message
        rescue ActiveSupport::MessageEncryptor::InvalidMessage
          say "Couldn't decrypt #{content_path}. Perhaps you passed the wrong key?"
        end