Permalink
Browse files

RJS may cache an array

  • Loading branch information...
1 parent b3b6ff4 commit 748c78ffc8b11a608745290e7d68bdf63720cfab @jeremy jeremy committed Mar 16, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_controller/caching/fragments.rb
@@ -46,7 +46,7 @@ def fragment_for(name = {}, options = nil, &block) #:nodoc:
yield
fragment = buffer[pos..-1]
write_fragment(name, fragment, options)
- ActionView::NonConcattingString.new(fragment)
+ fragment.is_a?(String) ? ActionView::NonConcattingString.new(fragment) : fragment
end
else
ret = yield

0 comments on commit 748c78f

Please sign in to comment.