method

new

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 (v5.1.7) is shown here.

new(parent_jar)
public

No documentation available.

# File actionpack/lib/action_dispatch/middleware/cookies.rb, line 542
      def initialize(parent_jar)
        super
        secret = key_generator.generate_key(request.signed_cookie_salt)
        @verifier = ActiveSupport::MessageVerifier.new(secret, digest: digest, serializer: ActiveSupport::MessageEncryptor::NullSerializer)
      end