aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/caching
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2011-01-11 18:45:34 -0200
committerSantiago Pastorino <santiago@wyeworks.com>2011-01-11 18:57:35 -0200
commita61e3acef25d8fb86275d41a9d0d1ba163d7e0bb (patch)
tree628ba1cd425603209cf8232ef92508fbe46ab1c9 /actionpack/lib/action_controller/caching
parent7d4d7457301faa85aa32b5ae29e13976e828954f (diff)
downloadrails-a61e3acef25d8fb86275d41a9d0d1ba163d7e0bb.tar.gz
rails-a61e3acef25d8fb86275d41a9d0d1ba163d7e0bb.tar.bz2
rails-a61e3acef25d8fb86275d41a9d0d1ba163d7e0bb.zip
html_safe.to_str makes no sense
Diffstat (limited to 'actionpack/lib/action_controller/caching')
-rw-r--r--actionpack/lib/action_controller/caching/fragments.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/caching/fragments.rb b/actionpack/lib/action_controller/caching/fragments.rb
index 88f973e62d..0be04b70a1 100644
--- a/actionpack/lib/action_controller/caching/fragments.rb
+++ b/actionpack/lib/action_controller/caching/fragments.rb
@@ -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