From 3339293280c12b1335d193c7f49c3e6ea665e76d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Janko=20Marohnic=CC=81?= Date: Wed, 25 Jan 2012 11:52:34 +0100 Subject: Make path_to_video in video_tag apply to each source --- actionpack/lib/action_view/helpers/asset_tag_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib/action_view') diff --git a/actionpack/lib/action_view/helpers/asset_tag_helper.rb b/actionpack/lib/action_view/helpers/asset_tag_helper.rb index 5dbba3c4a7..9b4b3923b6 100644 --- a/actionpack/lib/action_view/helpers/asset_tag_helper.rb +++ b/actionpack/lib/action_view/helpers/asset_tag_helper.rb @@ -422,7 +422,7 @@ module ActionView if sources.is_a?(Array) content_tag("video", options) do - sources.map { |source| tag("source", :src => source) }.join.html_safe + sources.map { |source| tag("source", :src => path_to_video(source)) }.join.html_safe end else options[:src] = path_to_video(sources) -- cgit v1.2.3 From 7d93e814e6cbdf78f4190cba36c1edb8e8d42ff6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Janko=20Marohnic=CC=81?= Date: Wed, 25 Jan 2012 11:52:49 +0100 Subject: Make audio_tag able to receive multiple sources --- actionpack/lib/action_view/helpers/asset_tag_helper.rb | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'actionpack/lib/action_view') diff --git a/actionpack/lib/action_view/helpers/asset_tag_helper.rb b/actionpack/lib/action_view/helpers/asset_tag_helper.rb index 9b4b3923b6..134eaab8bc 100644 --- a/actionpack/lib/action_view/helpers/asset_tag_helper.rb +++ b/actionpack/lib/action_view/helpers/asset_tag_helper.rb @@ -441,10 +441,17 @@ module ActionView #