aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorJeff Wallace <jeff@tjwallace.ca>2019-02-21 08:56:16 -0800
committerGitHub <noreply@github.com>2019-02-21 08:56:16 -0800
commite3853bd5b4ad31c20be4e8df894e95876c4307e3 (patch)
tree80d15c2867230eaa677bf40146a4f48c135eee20 /actionpack
parent3b6602aa7a01fb415fce07ef32458b131e5762e1 (diff)
downloadrails-e3853bd5b4ad31c20be4e8df894e95876c4307e3.tar.gz
rails-e3853bd5b4ad31c20be4e8df894e95876c4307e3.tar.bz2
rails-e3853bd5b4ad31c20be4e8df894e95876c4307e3.zip
Add documentation for the resource(s) :param option
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_dispatch/routing/mapper.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/actionpack/lib/action_dispatch/routing/mapper.rb b/actionpack/lib/action_dispatch/routing/mapper.rb
index d67044b4ac..da3ade652e 100644
--- a/actionpack/lib/action_dispatch/routing/mapper.rb
+++ b/actionpack/lib/action_dispatch/routing/mapper.rb
@@ -1440,6 +1440,9 @@ module ActionDispatch
# Allows you to specify the default value for optional +format+
# segment or disable it by supplying +false+.
#
+ # [:param]
+ # Allows you to override the default param name of +:id+ in the URL.
+ #
# === Examples
#
# # routes call <tt>Admin::PostsController</tt>