File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -8,15 +8,16 @@ def javascript_importmap_tags(entry_point = "application")
8
8
end
9
9
10
10
safe_join [
11
- javascript_inline_importmap_tag ( importmap . to_json ( resolver : self ) ) ,
11
+ javascript_inline_importmap_tag ( importmap ) ,
12
12
javascript_importmap_module_preload_tags ( importmap ) ,
13
13
javascript_import_module_tag ( entry_point )
14
14
] , "\n "
15
15
end
16
16
17
17
# Generate an inline importmap tag using the passed `importmap_json` JSON string.
18
18
# By default, `Rails.application.importmap.to_json(resolver: self)` is used.
19
- def javascript_inline_importmap_tag ( importmap_json )
19
+ def javascript_inline_importmap_tag ( importmap )
20
+ importmap_json = importmap . to_json ( resolver : self )
20
21
tag . script importmap_json . html_safe ,
21
22
type : "importmap" , "data-turbo-track" : "reload" , nonce : request &.content_security_policy_nonce
22
23
end
You can’t perform that action at this time.
0 commit comments