Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #8799 from goshakkk/ivar-readers

Access ivars via instance reader methods for consistency
  • Loading branch information...
commit e274db9edc31536510eef42ad61f170bd2787e13 2 parents 411de5a + ae1f86f
@steveklabnik steveklabnik authored
View
2  actionpack/lib/action_dispatch/journey/route.rb
@@ -45,7 +45,7 @@ def requirements # :nodoc:
end
def segments
- @path.names
+ path.names
end
def required_keys
View
4 actionpack/lib/action_dispatch/journey/routes.rb
@@ -16,12 +16,12 @@ def initialize
end
def length
- @routes.length
+ routes.length
end
alias :size :length
def last
- @routes.last
+ routes.last
end
def each(&block)
Please sign in to comment.
Something went wrong with that request. Please try again.