Permalink
Browse files

Merge pull request #5664 from lest/patch-1

use `symbolize_keys` instead of `dup.symbolize_keys!`
  • Loading branch information...
2 parents fde48f7 + f4d2695 commit 3e75acbc4c263814fa690905cc48c4c15cc5cf5f @drogus drogus committed Mar 31, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/lib/action_view/helpers/asset_tag_helper.rb
@@ -385,7 +385,7 @@ def font_url(source)
# image_tag("mouse.png", :mouseover => image_path("mouse_over.png")) # =>
# <img src="/images/mouse.png" onmouseover="this.src='/images/mouse_over.png'" onmouseout="this.src='/images/mouse.png'" alt="Mouse" />
def image_tag(source, options={})
- options = options.dup.symbolize_keys!
+ options = options.symbolize_keys
src = options[:src] = path_to_image(source)
@@ -478,7 +478,7 @@ def asset_paths
end
def multiple_sources_tag(type, sources)
- options = sources.extract_options!.dup.symbolize_keys!
+ options = sources.extract_options!.symbolize_keys
sources.flatten!
yield options if block_given?

0 comments on commit 3e75acb

Please sign in to comment.