Project

General

Profile

Defect #32885 » fix-single-arity-template-handlers-are-deprecated.patch

Go MAEDA, 2020-01-26 10:00

View differences:

lib/redmine/views/api_template_handler.rb
20 20
module Redmine
21 21
  module Views
22 22
    class ApiTemplateHandler
23
      def self.call(template)
23
      def self.call(template, source = nil)
24 24
        "Redmine::Views::Builders.for(params[:format], request, response) do |api|; #{template.source}; self.output_buffer = api.output; end"
25 25
      end
26 26
    end
(1-1/2)