Skip to content
This repository
Browse code

access `@path` and `@routes` via reader methods in journey

  • Loading branch information...
commit ae1f86fab5f80d00dc75541aef04eea8a349fb97 1 parent 411de5a
Gosha Arinich authored January 07, 2013
2  actionpack/lib/action_dispatch/journey/route.rb
@@ -45,7 +45,7 @@ def requirements # :nodoc:
45 45
       end
46 46
 
47 47
       def segments
48  
-        @path.names
  48
+        path.names
49 49
       end
50 50
 
51 51
       def required_keys
4  actionpack/lib/action_dispatch/journey/routes.rb
@@ -16,12 +16,12 @@ def initialize
16 16
       end
17 17
 
18 18
       def length
19  
-        @routes.length
  19
+        routes.length
20 20
       end
21 21
       alias :size :length
22 22
 
23 23
       def last
24  
-        @routes.last
  24
+        routes.last
25 25
       end
26 26
 
27 27
       def each(&block)

0 notes on commit ae1f86f

Please sign in to comment.
Something went wrong with that request. Please try again.