class ActionDispatch::Cookies::CookieJar

def update_cookies_from_jar

def update_cookies_from_jar
  request_jar = @request.cookie_jar.instance_variable_get(:@cookies)
  set_cookies = request_jar.reject { |k, _| @delete_cookies.key?(k) || @set_cookies.key?(k) }
  @cookies.update set_cookies if set_cookies
end