]> source.dussan.org Git - redmine.git/commitdiff
Fix failing API tests on Ruby 2.7 after migration to Rails 7.1 (#36320, #39760).
authorMarius Balteanu <marius.balteanu@zitec.com>
Sun, 10 Dec 2023 04:01:40 +0000 (04:01 +0000)
committerMarius Balteanu <marius.balteanu@zitec.com>
Sun, 10 Dec 2023 04:01:40 +0000 (04:01 +0000)
Patch by @maeda-m.

git-svn-id: https://svn.redmine.org/redmine/trunk@22509 e93f8b46-1217-0410-a6f0-8f06a7374b81

config/initializers/10-patches.rb

index adac8658365bf815188f717e9dd560715fc13d21..4869b3b839e6bf64aa2f93a5c46fc4f54d3115d6 100644 (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