From fc5478799be56aa23cdbe787ccdedeac0da146b0 Mon Sep 17 00:00:00 2001 From: Sergey Nartimov Date: Thu, 26 Jan 2012 01:11:24 +0300 Subject: do not modify options in image_tag --- actionpack/lib/action_view/helpers/asset_tag_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'actionpack/lib/action_view') 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 # Mouse # image_tag("mouse.png", :mouseover => image_path("mouse_over.png")) # => # 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) -- cgit v1.2.3