aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/lib/action_view')
-rw-r--r--actionpack/lib/action_view/helpers/text_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/text_helper.rb b/actionpack/lib/action_view/helpers/text_helper.rb
index 8be3d3589c..cafed43aed 100644
--- a/actionpack/lib/action_view/helpers/text_helper.rb
+++ b/actionpack/lib/action_view/helpers/text_helper.rb
@@ -301,7 +301,7 @@ module ActionView
(?:\#\w*)? # trailing anchor
)
([[:punct:]]|\s|<|$) # trailing text
- /x
+ /x unless const_defined?(:AUTO_LINK_RE)
# Turns all urls into clickable links.
def auto_link_urls(text, href_options = {})