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