method

generate_secret_with_secure_random

rails latest stable - Class: Rails::SecretKeyGenerator

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2.1.0) is shown here.

generate_secret_with_secure_random()
public

Generate a random secret key with Ruby 1.9’s SecureRandom module. Raises LoadError if the current Ruby version does not support SecureRandom.