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:
parent
411de5ae37
commit
ae1f86fab5
2 changed files with 3 additions and 3 deletions
|
@ -45,7 +45,7 @@ module ActionDispatch
|
|||
end
|
||||
|
||||
def segments
|
||||
@path.names
|
||||
path.names
|
||||
end
|
||||
|
||||
def required_keys
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue