aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers
diff options
context:
space:
mode:
authorwycats <wycats@gmail.com>2010-03-16 23:24:00 -0700
committerwycats <wycats@gmail.com>2010-03-16 23:24:00 -0700
commitcd9ffd11e13ef6e62eba2cbd5c3760ff04132820 (patch)
tree0fcc940424e1265f03d5df623f324cf7ca310dd3 /actionpack/lib/action_view/helpers
parentc7388124153e1b1f85965998e5d1c20eed670da8 (diff)
downloadrails-cd9ffd11e13ef6e62eba2cbd5c3760ff04132820.tar.gz
rails-cd9ffd11e13ef6e62eba2cbd5c3760ff04132820.tar.bz2
rails-cd9ffd11e13ef6e62eba2cbd5c3760ff04132820.zip
Eliminate warnings for AM on 1.8
Diffstat (limited to 'actionpack/lib/action_view/helpers')
-rw-r--r--actionpack/lib/action_view/helpers/capture_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/capture_helper.rb b/actionpack/lib/action_view/helpers/capture_helper.rb
index 42a67756e4..f0be814700 100644
--- a/actionpack/lib/action_view/helpers/capture_helper.rb
+++ b/actionpack/lib/action_view/helpers/capture_helper.rb
@@ -32,7 +32,7 @@ module ActionView
#
def capture(*args)
value = nil
- buffer = with_output_buffer { value = yield *args }
+ buffer = with_output_buffer { value = yield(*args) }
if string = buffer.presence || value and string.is_a?(String)
NonConcattingString.new(string)
end