From f4551ca7ac75d1b500d5c20a8571dcd43bda2526 Mon Sep 17 00:00:00 2001 From: Tim Cooper Date: Sat, 7 Jan 2012 16:45:22 +1000 Subject: Remove capture. --- actionpack/lib/action_view/helpers/record_tag_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib/action_view/helpers') diff --git a/actionpack/lib/action_view/helpers/record_tag_helper.rb b/actionpack/lib/action_view/helpers/record_tag_helper.rb index 980fa8130b..8e667fe30b 100644 --- a/actionpack/lib/action_view/helpers/record_tag_helper.rb +++ b/actionpack/lib/action_view/helpers/record_tag_helper.rb @@ -82,7 +82,7 @@ module ActionView # def content_tag_for(tag_name, single_or_multiple_records, prefix = nil, options = nil, &block) Array.wrap(single_or_multiple_records).map do |single_record| - capture { content_tag_for_single_record(tag_name, single_record, prefix, options, &block) } + content_tag_for_single_record tag_name, single_record, prefix, options, &block end.join("\n").html_safe end -- cgit v1.2.3