module ActionDispatch::Cookies::ChainedCookieJars

def signed_or_encrypted

Used by ActionDispatch::Session::CookieStore to avoid the need to introduce new cookie stores.
Returns the +signed+ or +encrypted+ jar, preferring +encrypted+ if +secret_key_base+ is set.
def signed_or_encrypted
  @signed_or_encrypted ||=
    if @options[:secret_key_base].present?
      encrypted
    else
      signed
    end
end