mirror of
https://github.com/redmine/redmine.git
synced 2026-01-31 11:50:13 +01: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user