Class: Redmine::Views::ApiTemplateHandler

Inherits:
Object
  • Object
show all
Defined in:
lib/redmine/views/api_template_handler.rb

Overview

Since:

  • 1.1.0

Class Method Summary collapse

Class Method Details

.call(template) ⇒ Object

Since:

  • 2.0.0



21
22
23
# File 'lib/redmine/views/api_template_handler.rb', line 21

def self.call(template)
  "Redmine::Views::Builders.for(params[:format], request, response) do |api|; #{template.source}; self.output_buffer = api.output; end"
end