Fixed that PrototypeHelper#update_page should return html_safe [DHH]

This commit is contained in:
David Heinemeier Hansson
2010-01-08 13:45:51 -08:00
parent 652d1c19ea
commit d4589e96ef
2 changed files with 3 additions and 1 deletions

View File

@@ -1,5 +1,7 @@
*Edge*
* Fixed that PrototypeHelper#update_page should return html_safe [DHH]
* Fixed that much of DateHelper wouldn't return html_safe? strings [DHH]
* Fixed that fragment caching should return a cache hit as html_safe (or it would all just get escaped) [DHH]

View File

@@ -1030,7 +1030,7 @@ module ActionView
# page.hide 'spinner'
# end
def update_page(&block)
JavaScriptGenerator.new(@template, &block).to_s
JavaScriptGenerator.new(@template, &block).to_s.html_safe!
end
# Works like update_page but wraps the generated JavaScript in a <script>