mirror of https://github.com/rails/rails
Merge pull request #5664 from lest/patch-1
use `symbolize_keys` instead of `dup.symbolize_keys!`
This commit is contained in:
commit
3e75acbc4c
|
@ -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?
|
||||
|
|
Loading…
Reference in New Issue