diff options
author | Guillermo Iguaran <guilleiguaran@gmail.com> | 2011-08-24 15:40:10 -0500 |
---|---|---|
committer | Guillermo Iguaran <guilleiguaran@gmail.com> | 2011-08-24 15:40:10 -0500 |
commit | c5a52850b3e2d0d1823f36d8d3afd9dc849cfddd (patch) | |
tree | ac8b763e8219969d5bfa84103d4d6590c83b78fc | |
parent | 289540e4ffc1a5619979708e5287a9b71f9ab4e2 (diff) | |
download | rails-c5a52850b3e2d0d1823f36d8d3afd9dc849cfddd.tar.gz rails-c5a52850b3e2d0d1823f36d8d3afd9dc849cfddd.tar.bz2 rails-c5a52850b3e2d0d1823f36d8d3afd9dc849cfddd.zip |
Remove redundant join and call to html_safe
-rw-r--r-- | actionpack/lib/sprockets/helpers/rails_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/sprockets/helpers/rails_helper.rb b/actionpack/lib/sprockets/helpers/rails_helper.rb index c50b0300d5..93ea7206a1 100644 --- a/actionpack/lib/sprockets/helpers/rails_helper.rb +++ b/actionpack/lib/sprockets/helpers/rails_helper.rb @@ -27,7 +27,7 @@ module Sprockets 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 @@ module Sprockets 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", |