aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/sprockets
diff options
context:
space:
mode:
authorGuillermo Iguaran <guilleiguaran@gmail.com>2011-08-25 15:54:18 -0500
committerGuillermo Iguaran <guilleiguaran@gmail.com>2011-08-25 16:09:53 -0500
commitf5472a3898d0a06edbc3a82b437de9989cf531ff (patch)
tree335abf2b4e81be741e089bb3f0221ca8a61601b4 /actionpack/lib/sprockets
parenta840172c535ae1f8bf29a397185053b85d7b4398 (diff)
downloadrails-f5472a3898d0a06edbc3a82b437de9989cf531ff.tar.gz
rails-f5472a3898d0a06edbc3a82b437de9989cf531ff.tar.bz2
rails-f5472a3898d0a06edbc3a82b437de9989cf531ff.zip
Removing redundant stringify_keys in Sprockets helpers
Diffstat (limited to 'actionpack/lib/sprockets')
-rw-r--r--actionpack/lib/sprockets/helpers/rails_helper.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/actionpack/lib/sprockets/helpers/rails_helper.rb b/actionpack/lib/sprockets/helpers/rails_helper.rb
index bc1ab3c52a..4e228d1291 100644
--- a/actionpack/lib/sprockets/helpers/rails_helper.rb
+++ b/actionpack/lib/sprockets/helpers/rails_helper.rb
@@ -26,10 +26,10 @@ module Sprockets
sources.collect do |source|
if debug && asset = asset_paths.asset_for(source, 'js')
asset.to_a.map { |dep|
- javascript_include_tag(dep, options.stringify_keys.merge!({ :debug => false, :body => true }))
+ javascript_include_tag(dep, options.merge({ :debug => false, :body => true }))
}
else
- super(source.to_s, { 'src' => asset_path(source, 'js', body) }.merge!(options.stringify_keys))
+ super(source.to_s, { :src => asset_path(source, 'js', body) }.merge!(options))
end
end.join("\n").html_safe
end
@@ -42,10 +42,10 @@ module Sprockets
sources.collect do |source|
if debug && asset = asset_paths.asset_for(source, 'css')
asset.to_a.map { |dep|
- stylesheet_link_tag(dep, options.stringify_keys.merge!({ :debug => false, :body => true }))
+ stylesheet_link_tag(dep, options.merge({ :debug => false, :body => true }))
}
else
- super(source.to_s, { 'href' => asset_path(source, 'css', body, :request) }.merge!(options.stringify_keys))
+ super(source.to_s, { :href => asset_path(source, 'css', body, :request) }.merge!(options))
end
end.join("\n").html_safe
end