blob: 802a79b3fce244c625f6916b4fa57d40a2a9bc70 (
plain) (
tree)
|
|
module ActionView
module TemplateHandlers
class RJS < TemplateHandler
include Compilable
def compile(template)
"@formats = [:html];" +
"controller.response.content_type ||= Mime::JS;" +
"update_page do |page|;#{template.source}\nend"
end
end
end
end
|