aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorAndrew White <andrew.white@unboxed.co>2018-03-08 11:55:01 +0000
committerAndrew White <andrew.white@unboxed.co>2018-03-08 11:55:01 +0000
commited0c8e9577483c31120239bc138952b235f570b3 (patch)
treea0d168563d1806a57234e9fb7e39d455cf807d3d /actionpack
parent22777c80b4c6716c120c6c7f4f9221d58a679fad (diff)
downloadrails-ed0c8e9577483c31120239bc138952b235f570b3.tar.gz
rails-ed0c8e9577483c31120239bc138952b235f570b3.tar.bz2
rails-ed0c8e9577483c31120239bc138952b235f570b3.zip
Quote string return values in doc examples [ci skip]
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_dispatch/routing/url_for.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_dispatch/routing/url_for.rb b/actionpack/lib/action_dispatch/routing/url_for.rb
index 872abacd53..865d10f886 100644
--- a/actionpack/lib/action_dispatch/routing/url_for.rb
+++ b/actionpack/lib/action_dispatch/routing/url_for.rb
@@ -206,8 +206,8 @@ module ActionDispatch
# This maintains the context of the original caller on
# whether to return a path or full url, e.g:
#
- # threadable_path(threadable) # => /buckets/1
- # threadable_url(threadable) # => http://example.com/buckets/1
+ # threadable_path(threadable) # => "/buckets/1"
+ # threadable_url(threadable) # => "http://example.com/buckets/1"
#
def route_for(name, *args)
public_send(:"#{name}_url", *args)