class ActionDispatch::Routing::Mapper

def self.normalize_name(name)

def self.normalize_name(name)
  normalize_path(name)[1..-1].tr("/", "_")
end

def self.normalize_path(path)

for root cases, where the latter is the correct one.
(:locale) becomes (/:locale) instead of /(:locale). Except
Invokes Journey::Router::Utils.normalize_path and ensure that
def self.normalize_path(path)
  path = Journey::Router::Utils.normalize_path(path)
  path.gsub!(%r{/(\(+)/?}, '\1/') unless path =~ %r{^/(\(+[^)]+\)){1,}$}
  path
end

def initialize(set) #:nodoc:

:nodoc:
def initialize(set) #:nodoc:
  @set = set
  @scope = Scope.new(path_names: @set.resources_path_names)
  @concerns = {}
end