Flowdock
method

compile

Importance_0
v2.1.0 - Show latest stable - 0 notes - Class: ActionView::TemplateHandlers::Builder
compile(template) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionpack/lib/action_view/template_handlers/builder.rb, line 12
      def compile(template)
        content_type_handler = (@view.send!(:controller).respond_to?(:response) ? "controller.response" : "controller")
        "#{content_type_handler}.content_type ||= Mime::XML\n" +
        "xml = ::Builder::XmlMarkup.new(:indent => 2)\n" +
        template.source +
        "\nxml.target!\n"
      end
Register or log in to add new notes.