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

This reverts commit ca4af53be8cb91aa3fe48ecbcf5a578189be32fa.
This commit is contained in:
Loïc Guitaut
2024-06-21 10:54:03 +02:00
committed by Loïc Guitaut
parent 60d5170587
commit 160011793a
48 changed files with 257 additions and 493 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)