Method deprecated or moved
This method is deprecated or moved on the latest stable version.
The last existing version (v5.1.7) is shown here.
generate_key()
public
No documentation available.
# File railties/lib/rails/secrets.rb, line 33
def generate_key
SecureRandom.hex(OpenSSL::Cipher.new(@cipher).key_len)
end