1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

access @path and @routes via reader methods in journey

This commit is contained in:
Gosha Arinich 2013-01-07 16:09:22 +03:00
parent 411de5ae37
commit ae1f86fab5
2 changed files with 3 additions and 3 deletions

View file

@ -45,7 +45,7 @@ module ActionDispatch
end
def segments
@path.names
path.names
end
def required_keys

View file

@ -16,12 +16,12 @@ module ActionDispatch
end
def length
@routes.length
routes.length
end
alias :size :length
def last
@routes.last
routes.last
end
def each(&block)