aboutsummaryrefslogtreecommitdiffstats
path: root/actionview
diff options
context:
space:
mode:
authorDillon Welch <daw0328@gmail.com>2017-11-02 17:54:54 -0700
committerDillon Welch <daw0328@gmail.com>2017-11-02 17:54:54 -0700
commitec13ef75260f6d143e947b0e5176e35e4c1229c2 (patch)
treed891df7bd3f51b540b272f953606b278345751ff /actionview
parent019c8ae814d0e89af3da543a956f22a4db92c5a3 (diff)
downloadrails-ec13ef75260f6d143e947b0e5176e35e4c1229c2.tar.gz
rails-ec13ef75260f6d143e947b0e5176e35e4c1229c2.tar.bz2
rails-ec13ef75260f6d143e947b0e5176e35e4c1229c2.zip
Fix typo
Diffstat (limited to 'actionview')
-rw-r--r--actionview/lib/action_view/helpers/url_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionview/lib/action_view/helpers/url_helper.rb b/actionview/lib/action_view/helpers/url_helper.rb
index 71fed39351..9900e0cd03 100644
--- a/actionview/lib/action_view/helpers/url_helper.rb
+++ b/actionview/lib/action_view/helpers/url_helper.rb
@@ -590,7 +590,7 @@ module ActionView
def add_method_to_attributes!(html_options, method)
if method && method.to_s.downcase != "get" && html_options["rel"] !~ /nofollow/
- if html_options.("rel").blank?
+ if html_options["rel"].blank?
html_options["rel"] = "nofollow"
else
html_options["rel"] = "#{html_options["rel"]} nofollow"