Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed CacheHelper to properly support html_safe output buffers

  • Loading branch information...
commit c476a6be78c27a2e92e30f0e46c6dcbbbaabc419 1 parent 9a4d2b2
@lhahne lhahne authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  actionpack/lib/action_view/helpers/cache_helper.rb
View
2  actionpack/lib/action_view/helpers/cache_helper.rb
@@ -53,7 +53,7 @@ def fragment_for(name = {}, options = nil, &block) #:nodoc:
# This dance is needed because Builder can't use capture
pos = output_buffer.length
yield
- if output_buffer.is_a?(ActionView::OutputBuffer)
+ if output_buffer.html_safe?
safe_output_buffer = output_buffer.to_str
fragment = safe_output_buffer.slice!(pos..-1)
self.output_buffer = ActionView::OutputBuffer.new(safe_output_buffer)

0 comments on commit c476a6b

Please sign in to comment.
Something went wrong with that request. Please try again.