mirror of
https://github.com/meineerde/redmine.git
synced 2026-02-01 03:57:15 +00:00
Patch by @maeda-m. git-svn-id: https://svn.redmine.org/redmine/trunk@22509 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
a255430b68
commit
c0f3fefa44
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user