aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/journey/route
diff options
context:
space:
mode:
authorBrandon Weaver <baweaver@squareup.com>2019-04-09 11:35:09 -0700
committerBrandon Weaver <baweaver@squareup.com>2019-04-09 12:40:26 -0700
commit79c15566da3f267d66cfd6cc8e2257b6aacc0e38 (patch)
treee6adeaff7acf481d1bde1423aa1f6598d2ebcf72 /actionpack/test/journey/route
parentdd58d040b2b798105b95e21396e86266bfd40de9 (diff)
downloadrails-79c15566da3f267d66cfd6cc8e2257b6aacc0e38.tar.gz
rails-79c15566da3f267d66cfd6cc8e2257b6aacc0e38.tar.bz2
rails-79c15566da3f267d66cfd6cc8e2257b6aacc0e38.zip
Adds named_captures to MatchData to emulate Regex
This change adds a `named_captures` method to `ActionDispatch::Journey::Path::MatchData` in order to emulate a similar method present on `Regex`'s `MatchData` present in Ruby core. This method can be useful for introspection of routes without the need to use `zip` while testing or developing in Rails core.
Diffstat (limited to 'actionpack/test/journey/route')
0 files changed, 0 insertions, 0 deletions