mirror of
https://github.com/github/rails.git
synced 2026-01-28 07:48:00 -05:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user