Merge pull request #5664 from lest/patch-1

use `symbolize_keys` instead of `dup.symbolize_keys!`
This commit is contained in:
Piotr Sarnacki 2012-03-31 09:30:10 -07:00
commit 3e75acbc4c
1 changed files with 2 additions and 2 deletions

View File

@ -385,7 +385,7 @@ module ActionView
# 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 @@ module ActionView
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?