aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/template_handlers/erb.rb
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2008-07-15 14:41:38 -0500
committerJoshua Peek <josh@joshpeek.com>2008-07-15 14:43:52 -0500
commitaca246ab25497bb6787d2e18680e9f73ad13d223 (patch)
treead107ae39feb55960a4f6faf084b3ad8bc56cbec /actionpack/lib/action_view/template_handlers/erb.rb
parent4f72feb84c25b54f66c7192c788b7fd965f2d493 (diff)
downloadrails-aca246ab25497bb6787d2e18680e9f73ad13d223.tar.gz
rails-aca246ab25497bb6787d2e18680e9f73ad13d223.tar.bz2
rails-aca246ab25497bb6787d2e18680e9f73ad13d223.zip
Get buffer for fragment cache from template's @output_buffer
Diffstat (limited to 'actionpack/lib/action_view/template_handlers/erb.rb')
-rw-r--r--actionpack/lib/action_view/template_handlers/erb.rb6
1 files changed, 0 insertions, 6 deletions
diff --git a/actionpack/lib/action_view/template_handlers/erb.rb b/actionpack/lib/action_view/template_handlers/erb.rb
index ac715e30c2..2f2febaa52 100644
--- a/actionpack/lib/action_view/template_handlers/erb.rb
+++ b/actionpack/lib/action_view/template_handlers/erb.rb
@@ -51,12 +51,6 @@ module ActionView
src = ::ERB.new(template.source, nil, erb_trim_mode, '@output_buffer').src
"__in_erb_template=true;#{src}"
end
-
- def cache_fragment(block, name = {}, options = nil) #:nodoc:
- @view.fragment_for(block, name, options) do
- @view.response.template.output_buffer
- end
- end
end
end
end