diff options
author | Sergey Nartimov <just.lest@gmail.com> | 2012-01-26 01:11:24 +0300 |
---|---|---|
committer | Sergey Nartimov <just.lest@gmail.com> | 2012-01-26 01:13:20 +0300 |
commit | fc5478799be56aa23cdbe787ccdedeac0da146b0 (patch) | |
tree | 37b91ed57df3ff4f00a6cbfe6798ac88898263ca /actionpack/lib/action_view/helpers | |
parent | 0920065772dc6e3094df7101e28c38a183725ac9 (diff) | |
download | rails-fc5478799be56aa23cdbe787ccdedeac0da146b0.tar.gz rails-fc5478799be56aa23cdbe787ccdedeac0da146b0.tar.bz2 rails-fc5478799be56aa23cdbe787ccdedeac0da146b0.zip |
do not modify options in image_tag
Diffstat (limited to 'actionpack/lib/action_view/helpers')
-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 251b8f8005..93092ceeb4 100644 --- a/actionpack/lib/action_view/helpers/asset_tag_helper.rb +++ b/actionpack/lib/action_view/helpers/asset_tag_helper.rb @@ -355,8 +355,8 @@ module ActionView # <img src="/images/mouse.png" onmouseover="this.src='/images/mouse_over.png'" onmouseout="this.src='/images/mouse.png'" alt="Mouse" /> # 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.symbolize_keys! + def image_tag(source, options={}) + options = options.dup.symbolize_keys! src = options[:src] = path_to_image(source) |