Revision 54e6af13
Added by Ondřej Pražák about 6 years ago
app/helpers/reactjs_helper.rb | ||
---|---|---|
|
||
def js_tags_for(requested_plugins)
|
||
requested_plugins.map do |plugin|
|
||
javascript_include_tag(*webpack_asset_paths(plugin, :extension => 'js'), "data-turbolinks-track" => true)
|
||
javascript_include_tag(*webpack_asset_paths(plugin.to_s, :extension => 'js'), "data-turbolinks-track" => true)
|
||
end
|
||
end
|
||
end
|
Also available in: Unified diff
Fixes #23576 - Fix the 'webpacked_plugins_js_for' helper (#5552)