0
@@ -24,7 +24,7 @@ class NilClass
0
Regexp.new("|#{source}").match('').captures.length
0
@@ -305,7 +305,7 @@ module ActionController
0
attr_accessor :segments, :requirements, :conditions
0
@@ -536,7 +536,7 @@ module ActionController
0
+ class Segment
#:nodoc:0
attr_accessor :is_optional
0
alias_method :optional?, :is_optional
0
@@ -591,7 +591,7 @@ module ActionController
0
- class StaticSegment < Segment
0
+ class StaticSegment < Segment
#:nodoc:0
attr_accessor :value, :raw
0
alias_method :raw?, :raw
0
@@ -625,7 +625,7 @@ module ActionController
0
- class DividerSegment < StaticSegment
0
+ class DividerSegment < StaticSegment
#:nodoc:0
def initialize(value = nil)
0
@@ -637,7 +637,7 @@ module ActionController
0
- class DynamicSegment < Segment
0
+ class DynamicSegment < Segment
#:nodoc:0
attr_accessor :key, :default, :regexp
0
def initialize(key = nil, options = {})
0
@@ -725,7 +725,7 @@ module ActionController
0
- class ControllerSegment < DynamicSegment
0
+ class ControllerSegment < DynamicSegment
#:nodoc:0
possible_names = Routing.possible_controllers.collect { |name| Regexp.escape name }
0
"(?i-:(#{(regexp || Regexp.union(*possible_names)).source}))"
0
@@ -752,7 +752,7 @@ module ActionController
0
- class PathSegment < DynamicSegment
0
+ class PathSegment < DynamicSegment
#:nodoc:0
EscapedSlash = CGI.escape("/")
0
def interpolation_chunk
0
"\#{CGI.escape(#{local_name}.to_s).gsub(#{EscapedSlash.inspect}, '/')}"
0
@@ -782,7 +782,7 @@ module ActionController
0
+ class RouteBuilder
#:nodoc:0
attr_accessor :separators, :optional_separators
0
@@ -958,7 +958,7 @@ module ActionController
0
+ class RouteSet
#:nodoc:0
# Mapper instances are used to build routes. The object passed to the draw
0
# block in config/routes.rb is a Mapper instance.
Comments
No one has commented yet.