Skip to content

Commit

Permalink
Merge pull request #10120 from vipulnsward/change_merge_on_new_hash
Browse files Browse the repository at this point in the history
change some more merge to merge! on new hashes
  • Loading branch information
rafaelfranca committed Apr 6, 2013
2 parents 5758387 + defea35 commit d4269db
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions actionpack/lib/action_view/helpers/asset_tag_helper.rb
Expand Up @@ -58,7 +58,7 @@ def javascript_include_tag(*sources)
sources.uniq.map { |source|
tag_options = {
"src" => path_to_javascript(source, path_options)
}.merge(options)
}.merge!(options)
content_tag(:script, "", tag_options)
}.join("\n").html_safe
end
Expand Down Expand Up @@ -98,7 +98,7 @@ def stylesheet_link_tag(*sources)
"rel" => "stylesheet",
"media" => "screen",
"href" => path_to_stylesheet(source, path_options)
}.merge(options)
}.merge!(options)
tag(:link, tag_options)
}.join("\n").html_safe
end
Expand Down Expand Up @@ -166,7 +166,7 @@ def favicon_link_tag(source='favicon.ico', options={})
:rel => 'shortcut icon',
:type => 'image/vnd.microsoft.icon',
:href => path_to_image(source)
}.merge(options.symbolize_keys))
}.merge!(options.symbolize_keys))
end

# Returns an HTML image tag for the +source+. The +source+ can be a full
Expand Down

0 comments on commit d4269db

Please sign in to comment.