From ab5857a53a50cf9de0a8b869c5f43b1acdb90aa5 Mon Sep 17 00:00:00 2001 From: schneems Date: Tue, 30 Aug 2016 15:02:56 -0500 Subject: Better keyword argument name --- actionview/lib/action_view/helpers/asset_tag_helper.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'actionview/lib/action_view') diff --git a/actionview/lib/action_view/helpers/asset_tag_helper.rb b/actionview/lib/action_view/helpers/asset_tag_helper.rb index 9c22fb0bde..2b9c1a8ceb 100644 --- a/actionview/lib/action_view/helpers/asset_tag_helper.rb +++ b/actionview/lib/action_view/helpers/asset_tag_helper.rb @@ -257,7 +257,7 @@ module ActionView # * :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 + # * :poster_skip_pipeline will bypass the asset pipeline when using # the :poster option instead using an asset in the public folder. # # ==== Examples @@ -270,7 +270,7 @@ module ActionView # # => # video_tag("trailer.m4v", size: "16x10", poster: "screenshot.png") # # => - # video_tag("trailer.m4v", size: "16x10", poster: "screenshot.png", public_poster_folder: true) + # video_tag("trailer.m4v", size: "16x10", poster: "screenshot.png", poster_skip_pipeline: true) # # => # video_tag("/trailers/hd.avi", size: "16x16") # # => @@ -286,7 +286,7 @@ module ActionView # # => def video_tag(*sources) options = sources.extract_options!.symbolize_keys - public_poster_folder = options.delete(:public_poster_folder) + public_poster_folder = options.delete(:poster_skip_pipeline) sources << options multiple_sources_tag_builder("video", sources) do |options| options[:poster] = path_to_image(options[:poster], skip_pipeline: public_poster_folder) if options[:poster] -- cgit v1.2.3