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) ⇒ Object



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