Project

General

Profile

Defect #32885 » template.diff

a small improvement - Pavel Rosický, 2021-04-01 20:11

View differences:

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