mirror of
https://github.com/meineerde/redmine.git
synced 2026-02-01 03:57:15 +00:00
Fix "ActionView::Template::Error (wrong number of arguments (given 2, expected 1))" (#29914).
Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@20886 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
9668486304
commit
7de9711f25
@ -20,7 +20,7 @@
|
||||
module Redmine
|
||||
module Views
|
||||
class ApiTemplateHandler
|
||||
def self.call(template)
|
||||
def self.call(template, source = nil)
|
||||
"Redmine::Views::Builders.for(params[:format], request, response) do |api|; #{template.source}; self.output_buffer = api.output; end"
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user