aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/lib/action_view/helpers
diff options
context:
space:
mode:
authorSean Griffin <sean@seantheprogrammer.com>2016-08-31 18:41:43 -0400
committerGitHub <noreply@github.com>2016-08-31 18:41:43 -0400
commitdd65843a0a78268935a5d49cf0a1d459c253e29d (patch)
treece59d45146207e8cdbd2c9ad3dc41fad505f72cc /actionview/lib/action_view/helpers
parentdf63c0d8c94472e941ce515ea546f75f5047696b (diff)
parentc762a24a61a5f54247142d291487206d3187671a (diff)
downloadrails-dd65843a0a78268935a5d49cf0a1d459c253e29d.tar.gz
rails-dd65843a0a78268935a5d49cf0a1d459c253e29d.tar.bz2
rails-dd65843a0a78268935a5d49cf0a1d459c253e29d.zip
Merge pull request #26351 from y-yagi/fix_ruby_warning
remove warning from `video_tag`
Diffstat (limited to 'actionview/lib/action_view/helpers')
-rw-r--r--actionview/lib/action_view/helpers/asset_tag_helper.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/actionview/lib/action_view/helpers/asset_tag_helper.rb b/actionview/lib/action_view/helpers/asset_tag_helper.rb
index 2b9c1a8ceb..b1563ac490 100644
--- a/actionview/lib/action_view/helpers/asset_tag_helper.rb
+++ b/actionview/lib/action_view/helpers/asset_tag_helper.rb
@@ -288,9 +288,9 @@ module ActionView
options = sources.extract_options!.symbolize_keys
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]
- options[:width], options[:height] = extract_dimensions(options.delete(:size)) if options[:size]
+ multiple_sources_tag_builder("video", sources) do |tag_options|
+ tag_options[:poster] = path_to_image(tag_options[:poster], skip_pipeline: public_poster_folder) if tag_options[:poster]
+ tag_options[:width], tag_options[:height] = extract_dimensions(tag_options.delete(:size)) if tag_options[:size]
end
end