Permalink
Browse files

Minor refactor

  • Loading branch information...
1 parent 22e86c1 commit 87b548ccac8fd9b384a024a1374a2474e7c4d604 @spastorino spastorino committed Jun 23, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/lib/action_view/helpers/url_helper.rb
@@ -619,8 +619,8 @@ def link_to_remote_options?(options)
end
def add_method_to_attributes!(html_options, method)
- if method && method.to_s.downcase != "get"
- html_options["rel"] = "#{html_options["rel"].to_s} nofollow".split(" ").uniq.join(" ")
+ if method && method.to_s.downcase != "get" && html_options["rel"] !~ /nofollow/
+ html_options["rel"] = "#{html_options["rel"]} nofollow".strip
end
html_options["data-method"] = method
end

0 comments on commit 87b548c

Please sign in to comment.