Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

RJS may cache an array

  • Loading branch information...
commit 748c78ffc8b11a608745290e7d68bdf63720cfab 1 parent b3b6ff4
@jeremy jeremy authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  actionpack/lib/action_controller/caching/fragments.rb
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.