Put a newline rather than a semicolon at the end of RJS source to avoid parse errors with embedded heredocs

This commit is contained in:
Jeremy Kemper
2008-07-07 12:43:43 -07:00
parent 7dc10478e5
commit ee6bbcb6ae

View File

@@ -5,7 +5,7 @@ module ActionView
def compile(template)
"controller.response.content_type ||= Mime::JS;" +
"update_page do |page|;#{template.source};end"
"update_page do |page|;#{template.source}\nend"
end
def cache_fragment(block, name = {}, options = nil) #:nodoc: