Revert "DEV: Upgrade Rails to version 7.1" (#27625)

This reverts commit ce00f83173863c3151f21c5cd03f24e3f6617e5c.
This commit is contained in:
Loïc Guitaut
2024-06-26 18:55:05 +02:00
committed by GitHub
parent 099cf71bcc
commit f58b844f45
48 changed files with 258 additions and 495 deletions

View File

@ -53,10 +53,10 @@ module Hijack
# this trick avoids double render, also avoids any litter that the controller hooks
# place on the response
instance = controller_class.new
response = ActionDispatch::Response.new.tap { _1.request = request_copy }
instance.set_response!(response)
instance.set_request!(request_copy)
response = ActionDispatch::Response.new
instance.response = response
instance.request = request_copy
original_headers&.each { |k, v| instance.response.headers[k] = v }
view_start = Process.clock_gettime(Process::CLOCK_MONOTONIC)