aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorVipul A M <vipulnsward@gmail.com>2017-11-24 22:32:38 +0530
committerGitHub <noreply@github.com>2017-11-24 22:32:38 +0530
commit65ff01e2d053978e86860d70a8c65e73d56a5419 (patch)
treee5cf22f44a077286dd04fa4be528738821aaa5a4 /actionpack
parentb01cc6663f91e825ffdf862a761e7bfc3d2ffd85 (diff)
parent516c63a71e632c862841cbcb3f9b7ecfc05d9675 (diff)
downloadrails-65ff01e2d053978e86860d70a8c65e73d56a5419.tar.gz
rails-65ff01e2d053978e86860d70a8c65e73d56a5419.tar.bz2
rails-65ff01e2d053978e86860d70a8c65e73d56a5419.zip
Merge pull request #31195 from mltsy/patch-2
Fix tld_length documentation in ActionDispatch::Cookies [ci skip]
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_dispatch/middleware/cookies.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/cookies.rb b/actionpack/lib/action_dispatch/middleware/cookies.rb
index 86a070c6ad..ea4156c972 100644
--- a/actionpack/lib/action_dispatch/middleware/cookies.rb
+++ b/actionpack/lib/action_dispatch/middleware/cookies.rb
@@ -161,7 +161,7 @@ module ActionDispatch
#
# * <tt>:tld_length</tt> - When using <tt>:domain => :all</tt>, this option can be used to explicitly
# set the TLD length when using a short (<= 3 character) domain that is being interpreted as part of a TLD.
- # For example, to share cookies between user1.lvh.me and user2.lvh.me, set <tt>:tld_length</tt> to 1.
+ # For example, to share cookies between user1.lvh.me and user2.lvh.me, set <tt>:tld_length</tt> to 2.
# * <tt>:expires</tt> - The time at which this cookie expires, as a \Time or ActiveSupport::Duration object.
# * <tt>:secure</tt> - Whether this cookie is only transmitted to HTTPS servers.
# Default is +false+.