From 981ac09332b8c5210408bbc2f5fa4a99fead6a26 Mon Sep 17 00:00:00 2001 From: schneems Date: Mon, 29 Aug 2016 12:40:02 -0500 Subject: [PATCH] Document public_poster_folder option --- actionview/lib/action_view/helpers/asset_tag_helper.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/actionview/lib/action_view/helpers/asset_tag_helper.rb b/actionview/lib/action_view/helpers/asset_tag_helper.rb index 92bf132fbc..8dc879611c 100644 --- a/actionview/lib/action_view/helpers/asset_tag_helper.rb +++ b/actionview/lib/action_view/helpers/asset_tag_helper.rb @@ -257,6 +257,8 @@ def image_alt(src) # * :size - Supplied as "{Width}x{Height}" or "{Number}", so "30x45" becomes # width="30" and height="45", and "50" becomes width="50" and height="50". # :size will be ignored if the value is not in the correct format. + # * :public_poster_folder will bypass the asset pipeline when using + # the :poster option instead using an asset in the public folder. # # ==== Examples # @@ -268,6 +270,8 @@ def image_alt(src) # # => # video_tag("trailer.m4v", size: "16x10", poster: "screenshot.png") # # => + # video_tag("trailer.m4v", size: "16x10", poster: "screenshot.png", public_poster_folder: true) + # # => # video_tag("/trailers/hd.avi", size: "16x16") # # => # video_tag("/trailers/hd.avi", size: "16") -- GitLab