Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Minor refactor

  • Loading branch information...
commit 87b548ccac8fd9b384a024a1374a2474e7c4d604 1 parent 22e86c1
@spastorino spastorino authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/lib/action_view/helpers/url_helper.rb
View
4 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
Please sign in to comment.
Something went wrong with that request. Please try again.