aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
authorJanko Marohnić <janko.marohnic@gmail.com>2012-01-25 11:52:34 +0100
committerJanko Marohnić <janko.marohnic@gmail.com>2012-01-25 11:52:34 +0100
commit3339293280c12b1335d193c7f49c3e6ea665e76d (patch)
tree94a98b4c33fe1a4981ac7820eb00a8bc7ef92f3b /actionpack/lib
parentb1f8ba138360cd67994d4134f57abca74f8528bc (diff)
downloadrails-3339293280c12b1335d193c7f49c3e6ea665e76d.tar.gz
rails-3339293280c12b1335d193c7f49c3e6ea665e76d.tar.bz2
rails-3339293280c12b1335d193c7f49c3e6ea665e76d.zip
Make path_to_video in video_tag apply to each source
Diffstat (limited to 'actionpack/lib')
-rw-r--r--actionpack/lib/action_view/helpers/asset_tag_helper.rb2
1 files changed, 1 insertions, 1 deletions
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)