From e41425a8ead1b28fc07c6a6549a403c69e103abd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Tue, 7 Feb 2012 10:50:23 -0200 Subject: [PATCH] Always use content_tag for audio/video tag Closes #4919 --- .../action_view/helpers/asset_tag_helper.rb | 2 +- .../test/template/asset_tag_helper_test.rb | 30 +++++++++---------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/actionpack/lib/action_view/helpers/asset_tag_helper.rb b/actionpack/lib/action_view/helpers/asset_tag_helper.rb index 7029ca8a8d..c035dde51e 100644 --- a/actionpack/lib/action_view/helpers/asset_tag_helper.rb +++ b/actionpack/lib/action_view/helpers/asset_tag_helper.rb @@ -488,7 +488,7 @@ def multiple_sources_tag(type, sources) end else options[:src] = send("path_to_#{type}", sources.first) - tag(type, options) + content_tag(type, nil, options) end end diff --git a/actionpack/test/template/asset_tag_helper_test.rb b/actionpack/test/template/asset_tag_helper_test.rb index 2d48cd18b4..3d2eeea503 100644 --- a/actionpack/test/template/asset_tag_helper_test.rb +++ b/actionpack/test/template/asset_tag_helper_test.rb @@ -244,17 +244,17 @@ def teardown } VideoLinkToTag = { - %(video_tag("xml.ogg")) => %(