@@ -21,7 +21,7 @@ def nonced_style_tag(content_or_options = {}, &block)
21
21
def nonced_stylesheet_link_tag ( *args , &block )
22
22
opts = extract_options ( args ) . merge ( nonce : _content_security_policy_nonce ( :style ) )
23
23
24
- stylesheet_link_tag ( *args , opts , &block )
24
+ stylesheet_link_tag ( *args , ** opts , &block )
25
25
end
26
26
27
27
# Public: create a script tag using the content security policy nonce.
@@ -39,7 +39,7 @@ def nonced_javascript_tag(content_or_options = {}, &block)
39
39
def nonced_javascript_include_tag ( *args , &block )
40
40
opts = extract_options ( args ) . merge ( nonce : _content_security_policy_nonce ( :script ) )
41
41
42
- javascript_include_tag ( *args , opts , &block )
42
+ javascript_include_tag ( *args , ** opts , &block )
43
43
end
44
44
45
45
# Public: create a script Webpacker pack tag using the content security policy nonce.
@@ -49,7 +49,7 @@ def nonced_javascript_include_tag(*args, &block)
49
49
def nonced_javascript_pack_tag ( *args , &block )
50
50
opts = extract_options ( args ) . merge ( nonce : _content_security_policy_nonce ( :script ) )
51
51
52
- javascript_pack_tag ( *args , opts , &block )
52
+ javascript_pack_tag ( *args , ** opts , &block )
53
53
end
54
54
55
55
# Public: create a stylesheet Webpacker link tag using the content security policy nonce.
@@ -59,7 +59,7 @@ def nonced_javascript_pack_tag(*args, &block)
59
59
def nonced_stylesheet_pack_tag ( *args , &block )
60
60
opts = extract_options ( args ) . merge ( nonce : _content_security_policy_nonce ( :style ) )
61
61
62
- stylesheet_pack_tag ( *args , opts , &block )
62
+ stylesheet_pack_tag ( *args , ** opts , &block )
63
63
end
64
64
65
65
# Public: use the content security policy nonce for this request directly.
0 commit comments