method

ensure_secret_secure

rails latest stable - Class: ActionDispatch::Cookies::SignedCookieJar

Method deprecated or moved

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

ensure_secret_secure(secret)
protected

To prevent users from using something insecure like “Password” we make sure that the secret they’ve provided is at least 30 characters in length.