method

new

rails latest stable - Class: ActionController::SignedCookieJar

Method deprecated or moved

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

new(parent_jar)
public

No documentation available.

# File actionpack/lib/action_controller/cookies.rb, line 161
    def initialize(parent_jar)
      unless parent_jar.controller.class.cookie_verifier_secret
        raise "You must set ActionController::Base.cookie_verifier_secret to use signed cookies"
      end

      @parent_jar = parent_jar
      @verifier = ActiveSupport::MessageVerifier.new(@parent_jar.controller.class.cookie_verifier_secret)
    end