DEV: Upgrade Rails to 7.1

This commit is contained in:
Loïc Guitaut
2024-05-31 11:07:19 +02:00
committed by Loïc Guitaut
parent 69c99a82dd
commit 081b00391e
42 changed files with 409 additions and 224 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
instance.response = response
response = ActionDispatch::Response.new.tap { _1.request = request_copy }
instance.set_response!(response)
instance.set_request!(request_copy)
instance.request = request_copy
original_headers&.each { |k, v| instance.response.headers[k] = v }
view_start = Process.clock_gettime(Process::CLOCK_MONOTONIC)