diff options
Diffstat (limited to 'config/initializers/10-patches.rb')
-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 |