diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2010-03-15 11:17:18 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2010-03-15 11:18:45 -0700 |
commit | c937da9e2fc14f74fb11d1ce605479c033ca29ee (patch) | |
tree | f9e65680b6553bb054f00dff498ed62e5f14823b /actionpack/lib/action_controller/caching/fragments.rb | |
parent | ed199554f10d208f74d7f052b86c4038a8c8c772 (diff) | |
download | rails-c937da9e2fc14f74fb11d1ce605479c033ca29ee.tar.gz rails-c937da9e2fc14f74fb11d1ce605479c033ca29ee.tar.bz2 rails-c937da9e2fc14f74fb11d1ce605479c033ca29ee.zip |
to_str works here
Diffstat (limited to 'actionpack/lib/action_controller/caching/fragments.rb')
-rw-r--r-- | actionpack/lib/action_controller/caching/fragments.rb | 2 |
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 841e64ecaf..89787727bd 100644 --- a/actionpack/lib/action_controller/caching/fragments.rb +++ b/actionpack/lib/action_controller/caching/fragments.rb @@ -54,7 +54,7 @@ module ActionController #:nodoc: key = fragment_cache_key(key) instrument_fragment_cache :write_fragment, key do - content = content.html_safe.as_str if content.respond_to?(:html_safe) + content = content.html_safe.to_str if content.respond_to?(:html_safe) cache_store.write(key, content, options) end content |