mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Fixed that PrototypeHelper#update_page should return html_safe [DHH]
This commit is contained in:
@@ -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]
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user