diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2008-06-08 20:35:14 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2008-06-08 20:35:30 -0700 |
commit | c88f2b5e23b0cb6c1a3b3687958f45d518414041 (patch) | |
tree | 9ca56019a073aea37fc5eda1b4735e1e21428425 /actionpack/lib/action_view/helpers | |
parent | df44df945d6315238e7d94d9bdef82e435dc9b24 (diff) | |
download | rails-c88f2b5e23b0cb6c1a3b3687958f45d518414041.tar.gz rails-c88f2b5e23b0cb6c1a3b3687958f45d518414041.tar.bz2 rails-c88f2b5e23b0cb6c1a3b3687958f45d518414041.zip |
with_output_buffer returns the temporary buffer instead of the result of the block
Diffstat (limited to 'actionpack/lib/action_view/helpers')
-rw-r--r-- | actionpack/lib/action_view/helpers/capture_helper.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/lib/action_view/helpers/capture_helper.rb b/actionpack/lib/action_view/helpers/capture_helper.rb index ab453fadf2..9cd9d3d06a 100644 --- a/actionpack/lib/action_view/helpers/capture_helper.rb +++ b/actionpack/lib/action_view/helpers/capture_helper.rb @@ -123,6 +123,7 @@ module ActionView def with_output_buffer(buf = '') self.output_buffer, old_buffer = buf, output_buffer yield + output_buffer ensure self.output_buffer = old_buffer end |