ActionDispatch::Cookies::ChainedCookieJars

module ActionDispatch::Cookies::ChainedCookieJars

Include in a cookie jar to allow chaining, e.g. cookies.permanent.signed

Public Instance Methods

encrypted() Show source

Returns a jar that'll automatically encrypt cookie values before sending them to the client and will decrypt them for read. If the cookie was tampered with by the user (or a 3rd party), nil will be returned.

If secrets.secret_key_base and secrets.secret_token (deprecated