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


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

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