mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
html_safe.to_str makes no sense
This commit is contained in:
parent
7d4d745730
commit
a61e3acef2
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ module ActionController #:nodoc:
|
|||
|
||||
key = fragment_cache_key(key)
|
||||
instrument_fragment_cache :write_fragment, key do
|
||||
content = content.html_safe.to_str if content.respond_to?(:html_safe)
|
||||
content = content.to_str
|
||||
cache_store.write(key, content, options)
|
||||
end
|
||||
content
|
||||
|
|
Loading…
Reference in a new issue