Skip to content
Browse files

Remove redundant join and call to html_safe

  • Loading branch information...
1 parent 289540e commit c5a52850b3e2d0d1823f36d8d3afd9dc849cfddd @guilleiguaran guilleiguaran committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/lib/sprockets/helpers/rails_helper.rb
View
4 actionpack/lib/sprockets/helpers/rails_helper.rb
@@ -27,7 +27,7 @@ def javascript_include_tag(*sources)
if debug && asset = asset_paths.asset_for(source, 'js')
asset.to_a.map { |dep|
javascript_include_tag(dep, :debug => false, :body => true)
- }.join("\n").html_safe
+ }
else
tag_options = {
'type' => "text/javascript",
@@ -49,7 +49,7 @@ def stylesheet_link_tag(*sources)
if debug && asset = asset_paths.asset_for(source, 'css')
asset.to_a.map { |dep|
stylesheet_link_tag(dep, :media => media, :debug => false, :body => true)
- }.join("\n").html_safe
+ }
else
tag_options = {
'rel' => "stylesheet",

0 comments on commit c5a5285

Please sign in to comment.
Something went wrong with that request. Please try again.