diff options
author | Marius Balteanu <marius.balteanu@zitec.com> | 2023-12-10 04:01:40 +0000 |
---|---|---|
committer | Marius Balteanu <marius.balteanu@zitec.com> | 2023-12-10 04:01:40 +0000 |
commit | c0f3fefa44719f31070784b1213dc749a76e22fa (patch) | |
tree | 28f9c2272f1bdbf19fe9e580b5519da7099e8deb | |
parent | a255430b689079342d0fe8a7c1f24d801db9ec47 (diff) | |
download | redmine-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.rb | 4 |
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 |