Class: Redmine::Views::ApiTemplateHandler

Inherits:
ActionView::TemplateHandler
  • Object
show all
Includes:
ActionView::TemplateHandlers::Compilable
Defined in:
lib/redmine/views/api_template_handler.rb

Instance Method Summary collapse

Instance Method Details

#compile(template) ⇒ Object


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

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