diff --git a/actionview/lib/action_view/helpers/asset_tag_helper.rb b/actionview/lib/action_view/helpers/asset_tag_helper.rb index 92bf132fbc0e9b6eac0fd08005cd04fad99283ed..8dc879611c6115d7ccf01b7786c4642d5a85a8aa 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")