blob: 300f9890e9ddb491a5c392c800d9fe92919f1798 (
plain) (
tree)
|
|
module ActionView
module TemplateHandlers
class RJS < TemplateHandler
def compile(template)
"controller.response.content_type ||= Mime::JS\n" +
"update_page do |page|\n#{template}\nend"
end
end
end
end
|