class ActionDispatch::Cookies::SignedKeyRotatingCookieJar

def parse(name, signed_message, purpose: nil)

def parse(name, signed_message, purpose: nil)
  rotated = false
  data = @verifier.verified(signed_message, purpose: purpose, on_rotation: -> { rotated = true })
  super(name, data, force_reserialize: rotated)
end