From c0f3fefa44719f31070784b1213dc749a76e22fa Mon Sep 17 00:00:00 2001 From: Marius Balteanu Date: Sun, 10 Dec 2023 04:01:40 +0000 Subject: [PATCH] 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 --- config/initializers/10-patches.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config/initializers/10-patches.rb b/config/initializers/10-patches.rb index adac86583..4869b3b83 100644 --- a/config/initializers/10-patches.rb +++ b/config/initializers/10-patches.rb @@ -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