Skip to content

Commit

Permalink
Passing in a Hash instance as kwargs parameters requires the "double …
Browse files Browse the repository at this point in the history
…splat" prefix
  • Loading branch information
amatsuda committed Sep 13, 2019
1 parent 090aa9e commit fb6d5e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actionview/lib/action_view/helpers/asset_tag_helper.rb
Expand Up @@ -273,7 +273,7 @@ def preload_link_tag(source, options = {})
crossorigin = "anonymous" if crossorigin == true || (crossorigin.blank? && as_type == "font")
nopush = options.delete(:nopush) || false

link_tag = tag.link({
link_tag = tag.link(**{
rel: "preload",
href: href,
as: as_type,
Expand Down

0 comments on commit fb6d5e0

Please sign in to comment.