]> source.dussan.org Git - redmine.git/commitdiff
Fix "ActionView::Template::Error (wrong number of arguments (given 2, expected 1...
authorGo MAEDA <maeda@farend.jp>
Thu, 1 Apr 2021 14:54:36 +0000 (14:54 +0000)
committerGo MAEDA <maeda@farend.jp>
Thu, 1 Apr 2021 14:54:36 +0000 (14:54 +0000)
Patch by Marius BALTEANU.

git-svn-id: http://svn.redmine.org/redmine/trunk@20886 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/views/api_template_handler.rb

index e777e1a70426db2b5e263f61876c02c8907e4517..0b31d33ef708bb85244f6082b1bba661b8b90d74 100644 (file)
@@ -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