Class: Redmine::Views::ApiTemplateHandler

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

Class Method Summary collapse

Class Method Details

.call(template, source = nil) ⇒ Object



23
24
25
# File 'lib/redmine/views/api_template_handler.rb', line 23

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