Permalink
Browse files

Cache helper fixed for SafeBuffer

  • Loading branch information...
arunagw committed Jun 8, 2011
1 parent cdf617e commit 059692a74692917cf1d6bbe4fafe19211f363fe2
Showing with 1 addition and 1 deletion.
  1. +1 −1 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
- fragment = output_buffer.slice!(pos..-1)
+ fragment = output_buffer.to_str.slice!(pos..-1)
controller.write_fragment(name, fragment, options)
end
end

0 comments on commit 059692a

Please sign in to comment.