Project

General

Profile

Feature #29914 » 0007-Fix-ActionView-Template-Error-wrong-number-of-argume.patch

Marius BĂLTEANU, 2021-03-30 18:41

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
(5-5/21)