1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-02-01 03:57:15 +00:00

Fix failing API tests on Ruby 2.7 after migration to Rails 7.1 (#36320, #39760).

Patch by @maeda-m.

git-svn-id: https://svn.redmine.org/redmine/trunk@22509 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Marius Balteanu 2023-12-10 04:01:40 +00:00
parent a255430b68
commit c0f3fefa44

View File

@ -148,8 +148,10 @@ module ActionView
super values
end
end)
end
Rendering.prepend(Module.new do
module ActionController
Base.prepend(Module.new do
def rendered_format
if lookup_context.formats.first == :api
return request.format