Skip to content

Commit

Permalink
Merge pull request #5664 from lest/patch-1
Browse files Browse the repository at this point in the history
use `symbolize_keys` instead of `dup.symbolize_keys!`
  • Loading branch information
drogus committed Mar 31, 2012
2 parents fde48f7 + f4d2695 commit 3e75acb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions actionpack/lib/action_view/helpers/asset_tag_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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?
Expand Down

0 comments on commit 3e75acb

Please sign in to comment.