diff options
author | Zachary Scott <e@zzak.io> | 2014-05-29 00:24:06 -0700 |
---|---|---|
committer | Zachary Scott <e@zzak.io> | 2014-05-29 00:24:06 -0700 |
commit | 3b606a32595bf3547dbe74a2304d048c2dd2f6b1 (patch) | |
tree | 22e4cb075d7ed0effc2c8ff9784eb0d2cb24d99e /actionpack/lib | |
parent | d5601041fe740711ec0121da956d7e9a16b7893b (diff) | |
download | rails-3b606a32595bf3547dbe74a2304d048c2dd2f6b1.tar.gz rails-3b606a32595bf3547dbe74a2304d048c2dd2f6b1.tar.bz2 rails-3b606a32595bf3547dbe74a2304d048c2dd2f6b1.zip |
Add missing `:param` option from the docs for Mapper#match [ci skip]
Option discovered by @zackperdue in #14741, implemented in #5581.
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_dispatch/routing/mapper.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/actionpack/lib/action_dispatch/routing/mapper.rb b/actionpack/lib/action_dispatch/routing/mapper.rb index 84a08770f5..4cf7adfb3c 100644 --- a/actionpack/lib/action_dispatch/routing/mapper.rb +++ b/actionpack/lib/action_dispatch/routing/mapper.rb @@ -422,6 +422,12 @@ module ActionDispatch # [:action] # The route's action. # + # [:param] + # Overrides the default resource identifier `:id` (name of the + # dynamic segment used to generate the routes). + # You can access that segment from your controller using + # <tt>params[<:param>]</tt>. + # # [:path] # The path prefix for the routes. # |