diff options
author | Joshua Peek <josh@joshpeek.com> | 2010-01-30 20:26:30 -0600 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2010-01-30 20:26:30 -0600 |
commit | 48459c82783c53e1ac671259d65c806384f60f2b (patch) | |
tree | dcef6645cedd9476098cd4fdec0ac1dba5ebc4f0 /actionpack/lib/action_view/helpers/url_helper.rb | |
parent | 31820b9dd60dc94744028b41f818f1fdab36e271 (diff) | |
download | rails-48459c82783c53e1ac671259d65c806384f60f2b.tar.gz rails-48459c82783c53e1ac671259d65c806384f60f2b.tar.bz2 rails-48459c82783c53e1ac671259d65c806384f60f2b.zip |
Add rel=nofollow on non get remote links
Diffstat (limited to 'actionpack/lib/action_view/helpers/url_helper.rb')
-rw-r--r-- | actionpack/lib/action_view/helpers/url_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/url_helper.rb b/actionpack/lib/action_view/helpers/url_helper.rb index 7d42a2ef69..bd179ef0b3 100644 --- a/actionpack/lib/action_view/helpers/url_helper.rb +++ b/actionpack/lib/action_view/helpers/url_helper.rb @@ -584,7 +584,7 @@ module ActionView end def add_method_to_attributes!(html_options, method) - html_options["rel"] = "nofollow" if method && method.to_s.downcase == "delete" + html_options["rel"] = "nofollow" if method && method.to_s.downcase != "get" html_options["data-method"] = method if method end |