summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarius Balteanu <marius.balteanu@zitec.com>2023-12-10 04:01:40 +0000
committerMarius Balteanu <marius.balteanu@zitec.com>2023-12-10 04:01:40 +0000
commitc0f3fefa44719f31070784b1213dc749a76e22fa (patch)
tree28f9c2272f1bdbf19fe9e580b5519da7099e8deb
parenta255430b689079342d0fe8a7c1f24d801db9ec47 (diff)
downloadredmine-c0f3fefa44719f31070784b1213dc749a76e22fa.tar.gz
redmine-c0f3fefa44719f31070784b1213dc749a76e22fa.zip
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
-rw-r--r--config/initializers/10-patches.rb4
1 files changed, 3 insertions, 1 deletions
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