File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 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")
88 end
99
1010 safe_join [
11- javascript_inline_importmap_tag ( importmap . to_json ( resolver : self ) ) ,
11+ javascript_inline_importmap_tag ( importmap ) ,
1212 javascript_importmap_module_preload_tags ( importmap ) ,
1313 javascript_import_module_tag ( entry_point )
1414 ] , "\n "
1515 end
1616
1717 # Generate an inline importmap tag using the passed `importmap_json` JSON string.
1818 # 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 )
2021 tag . script importmap_json . html_safe ,
2122 type : "importmap" , "data-turbo-track" : "reload" , nonce : request &.content_security_policy_nonce
2223 end
You can’t perform that action at this time.
0 commit comments