Skip to content
This repository
tree: 148aff2097
Fetching contributors…

Cannot retrieve contributors at this time

file 13 lines (12 sloc) 0.313 kb
1 2 3 4 5 6 7 8 9 10 11 12 13
module ActionView
  module TemplateHandlers
    class RJS < TemplateHandler
      include Compilable

      def compile(template)
        "@template_format = :html;" +
        "controller.response.content_type ||= Mime::JS;" +
          "update_page do |page|;#{template.source}\nend"
      end
    end
  end
end
Something went wrong with that request. Please try again.