diff options
author | Sergey Nartimov <just.lest@gmail.com> | 2012-03-30 08:35:50 +0300 |
---|---|---|
committer | Sergey Nartimov <just.lest@gmail.com> | 2012-03-30 08:35:50 +0300 |
commit | f4d2695f391410b9053d35b1c921eff485a8b3c3 (patch) | |
tree | 62926b048f97342eba638a13c588732596db24a2 | |
parent | 130064d5049cb6df4d0c14964c253d3bad26e001 (diff) | |
download | rails-f4d2695f391410b9053d35b1c921eff485a8b3c3.tar.gz rails-f4d2695f391410b9053d35b1c921eff485a8b3c3.tar.bz2 rails-f4d2695f391410b9053d35b1c921eff485a8b3c3.zip |
use `symbolize_keys` instead of `dup.symbolize_keys!`
-rw-r--r-- | actionpack/lib/action_view/helpers/asset_tag_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_view/helpers/asset_tag_helper.rb b/actionpack/lib/action_view/helpers/asset_tag_helper.rb index 6dd52d8186..2f8b28c82b 100644 --- a/actionpack/lib/action_view/helpers/asset_tag_helper.rb +++ b/actionpack/lib/action_view/helpers/asset_tag_helper.rb @@ -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? |