Permalink
Browse files

Put a newline rather than a semicolon at the end of RJS source to avo…

…id parse errors with embedded heredocs
  • Loading branch information...
1 parent 7dc1047 commit ee6bbcb6ae4488a6ab556236dfa1cf7358378dcd @jeremy jeremy committed Jul 7, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_view/template_handlers/rjs.rb
@@ -5,7 +5,7 @@ class RJS < TemplateHandler
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:

0 comments on commit ee6bbcb

Please sign in to comment.