aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/journey/nodes
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2014-05-29 14:57:48 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2014-05-29 14:57:48 -0700
commit3a102a58f4d33f9a8c660f617fe1242d7baa9f90 (patch)
tree882f50430559409b8eaa47ff06d040081cc7be6e /actionpack/lib/action_dispatch/journey/nodes
parentb5ea25bc44ceb07f1828b7b7f67bec700d96e216 (diff)
downloadrails-3a102a58f4d33f9a8c660f617fe1242d7baa9f90.tar.gz
rails-3a102a58f4d33f9a8c660f617fe1242d7baa9f90.tar.bz2
rails-3a102a58f4d33f9a8c660f617fe1242d7baa9f90.zip
use a parser to extract the group parts from the path
Diffstat (limited to 'actionpack/lib/action_dispatch/journey/nodes')
-rw-r--r--actionpack/lib/action_dispatch/journey/nodes/node.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/actionpack/lib/action_dispatch/journey/nodes/node.rb b/actionpack/lib/action_dispatch/journey/nodes/node.rb
index 935442ef66..bb01c087bc 100644
--- a/actionpack/lib/action_dispatch/journey/nodes/node.rb
+++ b/actionpack/lib/action_dispatch/journey/nodes/node.rb
@@ -93,6 +93,10 @@ module ActionDispatch
class Star < Unary # :nodoc:
def type; :STAR; end
+
+ def name
+ left.name.tr '*:', ''
+ end
end
class Binary < Node # :nodoc: