fix rubocop complaint about ambiguous splat operator

This commit is contained in:
Mike Greiling 2016-11-21 15:40:58 -06:00
parent a2c1f2e0ea
commit 11e9f32d1b
2 changed files with 2 additions and 2 deletions

View file

@ -3,6 +3,6 @@ module JavascriptHelper
javascript_include_tag asset_path(js), { "data-turbolinks-track" => true }
end
def page_specific_javascript_bundle_tag(js)
javascript_include_tag *webpack_asset_paths(js), { "data-turbolinks-track" => true }
javascript_include_tag(*webpack_asset_paths(js), { "data-turbolinks-track" => true })
end
end

View file

@ -28,7 +28,7 @@
= stylesheet_link_tag "application", media: "all"
= stylesheet_link_tag "print", media: "print"
= javascript_include_tag *webpack_asset_paths("application")
= javascript_include_tag(*webpack_asset_paths("application"))
- if content_for?(:page_specific_javascripts)
= yield :page_specific_javascripts